How to Delete Undeletable Files in Windows?

It’s important to keep your system clean from junk or irrelevant files occupying unnecessary space on the drive. Despite having admin privileges in Windows, users sometimes face this issue where they are not able to delete some files or folders.

This can be caused by a virus, malware, spyware, adware, Trojan horse, or corrupt/damaged system files and permissions that locks the files, thereby making them undeletable.

In few cases, the file can’t be removed or deleted as it is being used by another application or essential program. Some frequent errors that appear in Windows when trying to delete undeletable or locked files are:

  1. The file is in use by another program
  2. There has been sharing violation
  3. Cannot delete file: Access is denied
  4. The source or file destination is in use
  5. The file or directory is corrupted or unreadable.

This could be frustrating when you are struggling to free up some space and a few troublesome files stop you from proceeding. These files can vary from a few bytes to sometimes gigabytes.

How to Delete Undeletable Files

If you have also come across a similar situation, you can forcibly delete and get rid of these undeletable files and folders either manually or by using a software.

  1. Reboot the System

First, try a reboot. It’s possible that the file or folder location might be in use by a software or essential Windows programs in the background. When you shut down the system, these processes stop. After reboot, open File Explorer and browse the file or folder location. Try deleting it. If this doesn’t work, boot into ‘Safe Mode’ in Windows by following these steps:

In Windows XP & 7

  • Shutdown your system and then press power button to turn it on.
  • Immediately start pressing ‘F8’ key on the keyboard until you see the ‘Advanced Boot Options’ screen.
  • From ‘Advanced Boot options’ select Safe Mode by using arrow key and hit ‘Enter’.

In Windows 10, 8.1, and 8

  • Go to Settings > Update & Security > Recovery and click the ‘Get Started’ button under Advance Startup.
  • From the available options, go for Troubleshoot > Advanced options > Startup Settings > Restart.
  • After the restart, press 4 or F4 to boot the system into Safe Mode.

When you have successfully booted in Safe Mode, open the File Explorer and try deleting the files or folders or proceed to the next solution if this doesn’t work.

  1. Using Command Prompt

Command Prompt or cmd can help you get rid of most troublesome files and folders from your Windows PC. Follow these instructions to permanently delete undeletable files and folders.

WARNING: Be very careful with these commands. Confirm the location of the file or folder at least two to three times before executing these commands. You may accidentally delete some important files.

  • Press ‘Windows+S’ and type cmd.
  • Right-click on ‘Command Prompt’ and select ‘Run as administrator’. A cmd window appears.
  • To delete a single file, type: del /F /Q /A C:\Users\Downloads\BitRaserForFile.exe
  • If you want to delete a directory (folder), use RMDIR or RD command. Type: rd /S /Q C:\Users\Downloads
  • Hit the ‘Enter’ button after typing the command in the cmd window.
/FForce deleting of read-only files.
/SDelete specified files from all subdirectories.
/QQuiet mode, do not ask if ok to delete on global wildcard
/ASelects files to delete based on attributes

Followed by the location of file or folder

  1. Using a Software

If command prompt fails to delete undeletable files and folders, you can use a reliable tool like BitRaser for File that can delete undeletable and locked (or infected) files and folders from your PC and helps you free up unnecessarily used space on your system. Follow these steps:

  • Download and install BitRaser for File software.
  • Run the software.
  • In the left-pane, click on ‘Erase Now’. In the right-panel, all drives and partitions are displayed.
  • Double-click (or click on ‘+’) on the drive to expand it. Keep expanding until you locate the undeletable or locked file or the folder that you want to get rid of.
  • Click the file or folder checkbox to select it. You can select multiple files and folders/subfolders.
  • Click the ‘Erase Now’ button at the bottom right corner. Confirm when prompted.
  • After cleaning selected files and folders, a popup appears where the BitRaser for File asks you to reboot the system. Click ‘Reboot’ to restart the system.

The selected undeletable files and folders are permanently removed from the system after reboot.

Moreover, this tool can also help you to clean up your internet activities, system traces, application traces, and other files and folders permanently beyond the scope of recovery and helps safeguard your privacy.

It erases data securely using 17 International erasure standards like NATO, U.S. Department of Defense (DOD Standard 5220.22-M) 3 Pass/7 Pass, etc.

Conclusion:

Remove or delete your files cautiously and securely or else you may regret deleting some important files or folders accidentally. Use a reliable and trusted antivirus and anti-malware program to protect your system and files from infection.

It will also help you avoid data loss situations due to virus or malware attacks like Ransomware. Also, run schedule cleanup tasks to remove unnecessary files and folders from your system.

You can use BitRaser for File to delete undeletable files and folder and to schedule or automate erasure process (once, daily, weekly, monthly, on first boot, or on every boot).

Comments(4)
  1. Todd Washington November 14, 2018
    • Satyeshu Kumar November 15, 2018
  2. Tara Bush June 6, 2018
    • Satyeshu Kumar July 25, 2018

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.