0

I am administrator on my machine. I am the only registered user, but I cannot delete a folder. I tried running explorer.exe as administrator, but I still get the same error message, that I require permissions to delete the folder.

How can I remove this need? Is there a different file explorer that can do this for me?

John Demetriou
  • 926
  • 3
  • 17
  • 31
  • 1
    What folder are you trying to delete? What is the exact error message? There can be a few reasons why its not working. Currently there's too many details missing to come go a conclusion. – LPChip Aug 25 '20 at 07:48
  • @LPChip the accepted answer covered my question. The error message was that I require permissions to delete the folder even though I was admin. Thank you – John Demetriou Aug 25 '20 at 11:15
  • I was referring to the exact error. I read already that your error was something like that, but the exact error can be googled for too and some errors may look very much alike but mean something different. – LPChip Aug 25 '20 at 11:18
  • no, the exact error was "You require permissions to delete this folder" which is what I said – John Demetriou Aug 25 '20 at 12:50
  • No, you didn't say that. You said "that I require permissions to delete this folder" which is not a Windows error message. – LPChip Aug 25 '20 at 13:15

2 Answers2

1

First open Command Prompt as Administrator. Confirm to the UAC Admin Approval dialog if required. Then run takeown /f "Full path of the folder". Then run icacls "Full path of the folder" /grant Administrators:F. Now you will have full ownership on the folder. Now you can delete it.

Wasif
  • 7,984
  • 2
  • 19
  • 32
0

Try obtaining ownership over the file/directory you're trying to delete. Then go to Properties > Security > Advanced and enable inheritance (if disabled). Apply changes and try to delete it again.

user70960
  • 101