After recently upgrading my computer with an SSD, I needed to clean up my old system hard drive. I thought “Oh, all I have to do is open windows explorer as administrator and surely I’ll be able to just delete the old Windows folder from my old HDD.” As you can imagine, I was wrong – of course Microsoft had to make this semi-common task into a cryptic puzzle.
Here are the steps that worked for me, but be careful! This will wipe out permissions within the Windows directory you’re about to delete, so be sure you’re ready to trash it!
Take ownership of the windows directory:
- Go: Properties -> Security -> Advanced -> Owner -> Edit
- Select your username from the “Change owner to” list
- Select the checkbox to “Replace owner on subcontainer and objects”
- Click Apply, dismiss the warning, and then hit OK
- Click OK again, in the Advanced Security Settings dialog
Ensure your username is in the list of users for this folder
- Go: Properties -> Security -> Edit
- If your username isn’t in the list of users, click Add
- Enter your username and click “Check Names”
- When your username is found and displayed in the text box, click OK
- Click OK to close the Permissions dialog
Give yourself write permission to the folder and all its contents
- Now back in the Properties dialog, go: Advanced -> Change Permissions
- Select your username and click Edit
- Select the “Full Control – Allow” checkbox
- Ensure that “Apply to” is set to “This folder, subfolders and files”
- Select the “Apply these permissions to objects and/or containers within this container only” and click OK
- Select the “Replace all child object permissions with inheritable permissions from this object” and click OK
- Click OK on the confirmation dialog that comes up
- Click OK to several times to close out the dialogs completely
Now, you’ll be able to delete the folder without any permissions troubles! Yay!