0

I have a bunch of leftover folders from when I downloaded an IDE and did not get removed when I uninstalled it. Today, I decided to remove these files, but found that every time I tried to delete the files, I would get an error saying that I needed permission from Desktop-TXXXXX\[my user account name] to delete them. I am signed into my user account, and I cannot remove them. Since my user account created them, I should be able to delete everything that was created by it.

The Error Message:
My Error Message

Permissions:
The permissions

10
  • 1
    According to the error message your user account does not have permissions to delete the folder. You will have to use an Administrator account to delete the folder and/or modify the ACL for the folder and give your user account adequate permissions to delete the folder.
    – Ramhound
    Apr 26, 2019 at 16:20
  • @Ramhound I am the administrator account Apr 26, 2019 at 16:22
  • Also, @Ramhound both my user account and Administrators have "full access" to the folders Apr 26, 2019 at 16:24
  • 1
    You will have to modify the ACL, make sure the user is the owner and/or Administrator group is the owner, and verify your user has permissions to delete the folder. Any additional troubleshooting on the reason you are getting the prompt would require a screenshot of the ACL indicating what permissions the user has on the folder. Edit your question instead of submitting comments.
    – Ramhound
    Apr 26, 2019 at 16:24
  • With regards to your last comment, provide the ACL on the folder. Make sure you show the complete list of permissions the user has on the folder. Edit your question instead of submitting a comment.
    – Ramhound
    Apr 26, 2019 at 16:25

1 Answer 1

1

Three most likely scenarios (in descending likelihood):

1) The file requires administrator permissions. Due to UAC controls in Windows, being logged in as an admin user doesn't give full administrative permissions. You may need to force the action with a UAC enabled application. The easiest way to do this would be to use an admin command prompt. Right click the start button (win 10) and select "Command Prompt (Admin)" or "Powershell (Admin)" and use commands there to delete the files. "del filename" or "Remove-item filename" (powershell)

2) The permissions on the file have actually changed. You may need to change the permissions on the file or even re-take ownership on the files before you can delete them.

3) You've had some sort of weird file lock issue on the machine. Try restarting the machine and trying again. It could be open in some file/application/process which may actually come back up automatically when you restart as well.

Edit: Try rebooting the machine to safe mode and deleting the file(s), this should release any file locks provided they aren't core OS or hostile (thanks to @Christopher Hostage for the suggestion).

1
  • 1
    In my experience, like #3, it was locked by a service or auto-started application. In those cases, starting in Safe Mode was the only way to delete the file. Apr 26, 2019 at 20:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.