You can do that.
But why go thru that trouble?
To erase everything on your system create a new user with administrative rights.
Log off your old user account and log on to the new.
Then erase the old account.
Also, if you boot from the disc you can format during the install.