You do not state what you will be replaceing the win 7 with??
It can only be presumed another OS. Normally booting with the OS disc in place, will get the option to boot from CD/DVD, installing by that method will normally format C before installing.
If restoreing to Factory settings this again will normally Format C before restoring.
More information will no doupt get more help