Windows – Cannot delete a folder in Windows 7

windows 7

I have a few folders that I can't delete:

enter image description here

I right-click > properties > security to try and give myself permission, but no joy:

enter image description here

So I try to take ownership of the folder in advanced > owner…

enter image description here

But no…

enter image description here

So I try running the command prompt as administrator and doing rmdir, doesn't work:

enter image description here

I've run out of ideas! How can I delete these folders?

Best Answer

Take ownership and add permissions using the command line.

takeown /F (path to folder name) /R /D Y

(takes ownership)

icacls (path to folder name) /grant administrators:F /T

(sets full permissions for the folder to the admin group)

You should be able to delete it now.

If this does method not work due to other complications, boot from a flavor (Ubuntu or other) of Linux Live CD or USB and delete folders and files while in Linux.

Related Question