I have found myself in a somewhat unique situation.
I have a folder. This folder, somehow, lost its owner.
In \"Advanced Security Settings for FOLDER\" under \"C
Try chkdsk /F
in cmd with admin privilege!
Because the folder may contain a file without owner, which is an error in your file system.
If that folder is in your boot disk (C:), cmd will ask you whether to scan when the next time you launch the computer, type "y" to confirm.
After the scan chkdsk
will delete the damaged file(s).
I got this problem after uninstalled Android Studio, I can't delete C:\Program Files\Android\Android Studio
. Tried DEL
/RD
/TAKEOWN
/ICACLS
... for one hour, none of them works for me. Then I realized, that folder contains some damaged files without owner... Guess it's a bug of Windows or Android Studio...
This is one of the possibility why some folders or files cannot be deleted even with admin privilege.
Hope this helps the questioner and people who have the same problem!