how can i wipe out my hard drive to do a clean install of windows xp?

Someone told me to delete my cookies? Then someone told me to download something that will "clean up my computer" to delete stuff t make it run faster. I just use it for surfing the net so there is nothing important on here.

How can i improve my computers speed and clean the system up from bugs and make sure that it is safe please help?