For optimizing system storage space, you need to delete unnecessary files in your system frequently. This helps to improve the speed and performance of the operating system. However, you may realize that you cannot delete file or folder in Windows 10. You may come across a file that refuses to erase no matter how many times you press the Delete key or drag it to the Recycle Bin. You may get notifications like Item Not Found, Could not find this item, and Location is unavailable errors while deleting certain files or folders. So, if you too encountered this problem, we will show you how to force delete file in Windows 10.
- How to Force Delete File in Windows 10
- Why You Cannot Delete Files in Windows 10?
- Basic Troubleshooting
- Method 1: Close File/Folder Processes in Task Manager
- Method 2: Change Ownership of File or Folder
- Method 3: Delete File/Folder Through Command Prompt
- Method 4: Repair Corrupt System Files & Bad Sectors in Hard Disk
- Method 5: Enable Hidden Administrator account
- Method 6: Delete Files in Safe Mode
- Method 7: Scan for Viruses & Threats
- Method 8: Remove Third-Party Antivirus Interference (If Applicable)
How to Force Delete File in Windows 10
Note: Keep in mind that Windows operating system files are protected against deletion since doing so might create problems with the operating system. So be sure that you are not deleting any of these files. In case something goes wrong, a system backup should be prepared, in advance.
Why You Cannot Delete Files in Windows 10?
These are the possible reasons why you cannot delete files or folder in Windows 10:
- The file is currently open in the system.
- The file or folder has a read-only attribute i.e. it is write-protected.
- Corrupt File or Folder
- Corrupt Hard drive.
- Insufficient permission to erase.
- If you attempt to remove a file or folder from a mounted external device, an Access Denied message will appear.
- Filled Recycle Bin: On the Desktop screen, right-click on Recycle Bin and choose Empty Recycle Bin option, as shown.
Perform these basic troubleshooting steps for an easy fix to this problem:
- Close all programs running on your PC.
- Restart your PC.
- Scan your computer to find viruses/malware and remove it.
Method 1: Close File/Folder Processes in Task Manager
A file that is open in any program cannot be deleted. We will try ending the file process such as Microsoft Work using Task Manager, as follows:
1. Right-click on the Taskbar and select Task Manager, as shown.
2. Select Microsoft Word and click on End Task, as highlighted.
3. Then, try deleting the .docx File again.
Note: You can follow the same process for any type of file that you wish to delete.
Also Read: How to End Task in Windows 10
Method 2: Change Ownership of File or Folder
Here’s how to force delete file in Windows 10 by changing the ownership of that file or folder:
1. Right-click on the File you want to delete and click on Properties, as depicted below.
2. Click on Advanced under the Security tab.
3. Click on Change next to the Owner name.
Note: In some situations, System is listed as the owner, while in others; TrustedInstaller.
4. Enter the username in the Enter the object name to select field.
5. Click on Check Names. When the name is recognized, click on OK.
You will notice that the Owner name has changed to the username you provided.
6. Check the box marked Replace owner on subcontainers and objects and click Apply. Then, restart your Windows 10 PC.
7. Again, navigate to Advanced Security Setting for the folder by following steps 1–2.
8. Under Permissions tab, check the box titled Replace all child object permission entries with inheritable permission entries from this object shown highlighted. Click on OK and close the window.
9. Return to the Folder Properties window. Click on Edit under Security tab.
10. In the Permissions for <username> window, check Full Control option and click OK.
11. Open the file or folder in File Explorer and press Shift + Delete keys to delete it permanently.
Method 3: Delete File/Folder Through Command Prompt
Most times, it is just faster and easier to do things with simple command lines. Here’s how to force delete file in Windows 10:
1. Press the Windows key, type Command Prompt and click on Run as administrator, as shown.
2. Type del, followed by the path of the folder or file you wish to remove, and hit Enter.
For example, we have depicted deletion command for text file named Armed from C drive.
Note: If you do not remember the exact name of the file, type tree /f command. You will see a tree of all nested files and folders here.
Once you determine the path for desired file or folder, implement Step 2 to delete it.
Method 4: Repair Corrupt System Files & Bad Sectors in Hard Disk
Method 4A: Use chkdsk Command
Check Disk command is used to scan for bad sectors on the Hard Disk Drive and repair them, if possible. Bad sectors in HDD can result in Windows being unable to read important system files resulting in you can’t delete folder issue in Windows 10.
1. Click on Start and type cmd. Then, click on Run as Administrator, as shown.
2. Click on Yes in the User Account Control dialog box to confirm.
3. Type chkdsk X: /f where X represents the drive partition that you want to scan. Hit Enter to execute.
4. You might get prompted to schedule the scan during the next boot in case the drive partition is being used. In this case, press Y and press the Enter key.
Method 4B: Fix Corrupt System Files using DISM & SFC Scans
Corrupt system files can also result in this issue. Hence, running Deployment Image Servicing & Management and System File Checker commands should help. After running these scans you will be able to force delete file in Windows 10.
Note: It is advisable to run DISM commands before executing SFC command in order to achieve better results.
1. Launch Command Prompt with administrative privileges as shown in Method 4A.
2. Here, type the given commands, one after the other, and press Enter key to execute these.
DISM.exe /Online /Cleanup-image /Checkhealth DISM.exe /Online /Cleanup-image /Scanhealth DISM.exe /Online /Cleanup-image /Restorehealth
3. Type sfc /scannow and hit Enter. Let the scan be completed.
4. Restart your PC once Verification 100% complete message is displayed.
Method 4C: Rebuild Master Boot Record
Due to corrupt Hard drive sectors, Windows OS is not able to boot properly resulting in can’t delete folder in Windows 10 issue. To fix this, follow these steps:
1. Restart your computer while pressing the Shift key to enter the Advanced Startup menu.
2. Here, click on Troubleshoot, as shown.
3. Then, click on Advanced options.
4. Choose Command Prompt from the list of available options. The computer will boot once again.
5. From the list of accounts, choose your User Account and enter your Password on the next page. Click on Continue.
6. Execute the following commands one by one.
bootrec.exe /fixmbr bootrec.exe /fixboot bcdedit /export X:\bcdbackup attrib X:\boot\bcd -h -r -s ren X:\boot\bcd bcd.old bootrec /rebuildbcd
Note 1: In the commands, X represents the drive partition that you want to scan.
Note 2: Type Y and press Enter key when asked for permission to add installation to the boot list.
7. Now, type exit and hit Enter. Click on Continue to boot normally.
After this process, you will be able to force delete file in Windows 10.
Also Read:What is Windows 10 Boot Manager?
Method 5: Enable Hidden Administrator account
Windows 10 includes a built-in Administrator account that, by default, is hidden and disabled for security reasons. Sometimes, you need to enable this hidden administrator access to solve this problem:
1. Launch Command Prompt as instructed in Method 3.
2. Type the command: net user to get a list of all user accounts.
3. Now, execute the command: net user administrator /active:yes.
4. Once you receive command completed successfully message, type given command and hit Enter:
net user administrator
The value for Account Active filed should be Yes, as shown. If it is, you will be able to delete files and folders with ease.
Method 6: Delete Files in Safe Mode
This is only a workaround, but it could come in handy if you only need to remove a few files or folders from a certain directory.
1. Press Windows + R keys together to launch the Run Dialog Box.
2. Here, type msconfig and hit Enter.
3. Switch to the Boot tab.
4. Check the box Safe Boot and click on Apply > OK to save changes.
5. Delete the file, folder or directory once you have entered Safe Mode.
6. Then, uncheck the boxes marked in Step 4 and boot normally to continue working.
Method 7: Scan for Viruses & Threats
The files which you want to delete can be infected with malware or viruses which results in cannot delete files in Windows 10 issue. So, you should scan the problem-causing file or folder, as follows:
1. Type and search Virus & threat protection in Windows search bar. Click on Open, as shown.
2. Here, click Scan options.
3. Select Full scan and click on Scan now.
Note: Full scan generally takes longer to complete because it is a thorough process. Hence, do so during your non-working hours.
4. Wait for the scanning process to complete.
Note: You can minimize the scan window and do your usual work as it will run in the background.
5. Malware will be listed under the Current threats section. Thus, click on Start actions to remove these.
After removing malware, you can force delete file in Windows 10.
Method 8: Remove Third-Party Antivirus Interference (If Applicable)
Many antivirus programs include a file-protection function so that malicious apps and users cannot erase your data. While this functionality is convenient, it might also prevent you from deleting some files. Hence, to resolve the cannot delete folder Windows 10 issue,
- Disable file-protection setting in the antivirus app.
- Or, disable the antivirus program on your PC.
- Or, uninstall Antivirus from your computer. Read 5 Ways to Completely Uninstall Avast Antivirus in Windows 10 here.
Frequently Asked Questions (FAQs)
Q1. How do you force delete a folder?
Ans. You should start by removing the files that make up its content. The empty folder can then be deleted easily.
Q2. How can I get rid of desktop icons that cannot be deleted?
Ans. If you are unable to remove an icon from your desktop, you can use Windows customization options.
Q3. Can I delete Aow_drv?
Ans. No, you cannot remove Aow_drv no matter how hard you try. This is a log file that you cannot remove.
- What is WinZip?
- How to Remove Duplicate Files in Google Drive
- How to Delete Temp Files in Windows 10
- How to Delete Win Setup Files in Windows 10
We hope you found this tutorial useful for how to force delete file in Windows 10. Please tell us which approach worked best for you. Share any questions or suggestions in the comments section below.