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

windows 7

I recently installed a new faster hard drive on my computer, and I am using the old drive as a secondary. I am running Windows 7 Professional, and it won't let me delete the Windows directory off of the old secondary drive. I even tried using RMDIR /s E:\Windows from an elevated command prompt. Same problem: access denied. Surely I'm not the first person to try this. How do I fix it?

Best Answer

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