11-05-2021

Active8 months ago

How to Delete Files on Windows 10 That Insist on Staying 1. Try Killing the Task. Delete File Using Third Party Tool. Delete File Using Command Prompt. Safe Boot if All Else Fails. The problem of being unable to delete a File or Folder in Windows 10 can happen even if the File or Folder was created by you and you do have the permission to edit the File or Folder. In most cases, the reason for being Unable to Delete File or Folder in Windows 10 is due to the requested File. Aug 29, 2018  You cannot delete a file or a folder on an NTFS file system volume Content provided by Microsoft To continue receiving security updates for Windows, make sure you're running Windows XP with Service Pack 3 (SP3). I can’t recall where I found my fix from, or else I’d happily credit the originator for this great solution, but here’s how I was able to finally delete that random folder that Windows.

I can't delete a certain folder in Windows 7. It's not a system folder. It was created by an app. I get an error message 'You need permission to perform this action. You require permission from Tony....'. I am an admin and logged in as myself Tony. I have full ownership of the folder with full control permission. I rebooted the machine. I killed the app which created the folder. I am out of ideas.

Why is Windows 7 not letting me delete the folder?

studiohack
11.4k18 gold badges81 silver badges115 bronze badges
Tony_HenrichTony_Henrich
4,79725 gold badges76 silver badges100 bronze badges
File

13 Answers

I am not sure why this happens but there is a workaround.

To take control of the folder containing the undeletable create a text file called “delete.bat” and add the following lines to it:

You will need to change the directory path to match your requirements e.g. “C:Locked Directory” to “C:Delete Me”.

Right click on the file “delete.bat” select “Run As Administrator” and you should now have full control of the directory and all sub directories meaning you can do what you wish with them.

SahilSahil
1,7892 gold badges12 silver badges10 bronze badges

The only way was to delete files starting from the lowest level folder in that folder. I got that error message with every folder which had subfolders. I deleted all files/subfolders working my way up.

Tony_HenrichTony_Henrich
4,79725 gold badges76 silver badges100 bronze badges

A folder can disallow a parent from overwriting its permissions, so it stops working at a certain depth.

Use Process Monitor and filter for ACCESS DENIED events to figure out this depth

Every time an ACCESS DENIED event occurs change the permissions as explained by @Sahil.

You can use Handle too see what processes are opening files within your folder.

Example:

Community
Tamara WijsmanTamara Wijsman
51.1k25 gold badges166 silver badges248 bronze badges

Had this issue today with a Windows Update folder and would like to supplement the answer.

When permissions on a folder are correct (example below, with Admin being the administrator account I was logged in with):

But permissions on subfolders are different and do not propagate from the parent even though you tell them to, causing problems when trying to delete the parent folder:

Open a command prompt (personally, I did not need to elevate the prompt) and run

To replace Access Control Lists with default ACLs, traversing all subfolders. After this try deleting the folder.

Windows 8 Can't Delete Files

mxl_mxl_

I had this issue and tried several of the answers here to no avail. However, I was able to simply delete the entire folder I was having problems with from an elevated command prompt like so:

Hope this helps someone.

BryanBryan

download SysInternals Suite and use the following utilities

use Process Explorer and Process Monitor to find out whats happening with your file

or use the following stand alone utils

use AccessChk to get details not easily available via the GUI

use PSFILE to scan for any process that is holding the file openthen try the MoveFile utility to schedule a file delete in the next boot cycle.

The answer you're looking for will show up in the output of one of these utilities

klouckskloucks

When I run into a folder/file I can't delete and rebooting doesn't free the file. I will add to the security setting of the file/folder the Everyone group and set the permissions to Deny Full Control. Then when I reboot the machine, what ever was using the file/folder starts, it won't be able to read/write or lock the file/folder. Finally with nothing being able to use the file/folder, you will be free to delete it.

Hope this helps.

Scott McClenningScott McClenning

No go with Windows 7 Ultimate x64. Finally had to boot from a USB-based linux OS (which ignores file permissions in NTFS file systems) and delete the offending directory that way.

Steven BuehlerSteven Buehler

I assume UAC is enabled and you are trying to delete the folder from Windows Explorer. You should run Windows Explorer as administrator (right click on the icon and select 'Run as administrator') and then delete the folder.

The other alternative is to disable UAC, but I wouldn't recommend it.

ncardelincardeli

Well, this happens for files that were installed by some kind installer, like under the TrustedInstaller user.

You need to pwn the file first,

  1. Right click the file, go to Properties/Security/Advanced.
  2. Owner tab/Edit/Change the owner to you (Administrator), save.
  3. Now you can go back to Properties/Security/ and assume Full Control over the file
bobobobobobobobo
2,7877 gold badges37 silver badges60 bronze badges

You can use Unlocker utility to delete such folders.

It is very simple to use and it is completely free.

user1336087user1336087

Try moving the folder to your Desktop and deleting it there, odd, but has worked for me under similar circumstances.

TogTog
4,6328 gold badges30 silver badges42 bronze badges

I had the same issue (Windows required permission from user X, while being connected as user X…):

I fixed it using unlocker (free, Microsoft Windows), then did:

After that, I could delete the directory without further issue.

Windows Can't Delete File As Administrator

Franck DernoncourtFranck Dernoncourt
9,23325 gold badges98 silver badges194 bronze badges

protected by CommunityMay 13 '11 at 7:15

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

Windows can

Can't Delete File Windows Xp

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