How do I completely replace my pc with ubuntu?

I have an old computer lying around that I want to install linux on. I’ve downloaded and burned the ubuntu installation to a cd and the cd works and everything. I want to completely delete everything windows off of the old computer so that ubuntu runs automatically when I turn on the computer. What’s the best way to do this?