Table of Content
    BitRaser

    How to Delete Undeletable Files in Windows?


    Table of Content

      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.
      /F Force deleting of read-only files.
      /S Delete specified files from all subdirectories.
      /Q Quiet mode, do not ask if ok to delete on global wildcard
      /A Selects 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 Stellar File Eraser 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 Stellar File Eraser to delete undeletable files and folder and to schedule or automate erasure process (once, daily, weekly, monthly, on first boot, or on every boot).

      Was this article helpful?

      No NO

      About The Author

      Satyeshu Kumar linkdin

      Satyeshu is a Windows blogger and data recovery expert. He is having good technical knowledge and experience in Windows data recovery. He writes about latest technical tips, Windows issues and tutorials.

      4 comments

        1. Hello Todd,

          Unfortunately, the software does not support this algorithm, you need to upgrade to another variant to avail this algorithm

      1. As per my believe using third-party file eraser software is the best approach with maximum assurance that no data is recovered back. I would definitely want to try BitRaser tool in future.

      Leave a comment

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

      Image Captcha
      Refresh Image Captcha

      Enter Captcha Here :

      Related Posts

      WHY STELLAR® IS GLOBAL LEADER

      Why Choose Stellar?

      • 0M+

        Customers

      • 0+

        Years of Excellence

      • 0+

        R&D Engineers

      • 0+

        Countries

      • 0+

        PARTNERS

      • 0+

        Awards Received