The Computer Oracle

How to delete the Windows directory from an old hard drive?

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Isolated

--

Chapters
00:00 How To Delete The Windows Directory From An Old Hard Drive?
00:30 Answer 1 Score 8
01:05 Accepted Answer Score 2
01:16 Answer 3 Score 4
01:34 Answer 4 Score 17
01:45 Thank you

--

Full question
https://superuser.com/questions/428163/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows7

#avk47



ANSWER 1

Score 17


At least following worked for me:

takeown /f x:\windows /r

added full rights to the folder in properties -> security

icacls x:\windows /reset /T



ANSWER 2

Score 8


Download and burn an Ubuntu LiveCD http://www.ubuntu.com/

Then boot into that LiveCD (usually place the CD in the drive, restart your computer while holding down F12 )

The Ubuntu Distribution will take a little while to load, once it does it should recognize your internal hardrives. You can find more info here: http://www.psychocats.net/ubuntu/mountwindows

Just remove these folders through Linux.

rm -rf <path to directory to remove>

if this fails because of privileges try

sudo rm -rf <path to directory to remove>

Be warned, you should be absolutely sure you do not need these directories.




ANSWER 3

Score 4


You must take ownership and then grant yourself Full Control permissions to the folder.

Taking ownership only gives you the ability to change ACLs. Granting yourself permissions then gives you the ability to delete the files/folders.




ACCEPTED ANSWER

Score 2


I ended up reformatting the drive from an elevated command prompt, which effectively wiped out everything on the drive, including the Windows directory.