Technology computers-hardware How to Erase Hard Drive C Codes About Technology Saturday, July/06/2024 Saturday, July/06/2024 8 104 Share 0 1). Insert the DOS boot disk in the computer's disk drive.2). Restart the computer. Press any key when prompted to load DOS.3). Type "Format c:" and press "Enter."4). Press "Y" to erase the drive's code-containing files.