How to Delete Undeletable Files on Windows

If you’ve ever encountered the message ” Cannot delete file: The file is in use by another program or user ,” you know how frustrating it can be. This error is common in Windows when you try to delete files or folders that are still in use by an application or the system itself.

Understanding how to delete undeletable files and force them to be deleted can save you time and help you keep your PC organized. In this guide, we’ll show you the most effective solutions if you can’t delete files that won’t delete because they’re in use by another process or user, using tools available in Windows.

Index

  • Why doesn’t Windows allow me to delete undeletable files?
  • How to delete a file that is in use
    • 1. Identify the program that uses the file
    • 2. Delete the file in Safe Mode
    • 3. Check and remove read-only protection
  • Conclusions
  • Frequently Asked Questions (FAQ)
    • How can I find out which program is blocking a file on Windows?
    • What should I do if a file won’t delete even in Safe Mode?
    • Is it possible to delete locked files via command prompt?

Why doesn’t Windows allow me to delete undeletable files?

Sometimes, when you try to delete a file or folder, you receive an error message stating that the file is in use by another user or program. This happens when the file is open by an application (even in the background) or when Windows is still using it.

Often, simply closing the associated program or waiting a few seconds and trying again is enough. If the file remains locked, more specific methods are needed.

How to delete a file that is in use

Let’s look at the practical steps to force-delete a locked file using Windows features.

1. Identify the program that uses the file

First of all, you can try to identify which program is using the file via Windows “ Resource Monitor ”:

To quickly find the obstacle, here’s how:

  1. Press the Windows key on your keyboard, type resmon.exe , and press Enter .
  2. In the window that opens, select the CPU tab .
  3. In the “ Associated Handles ” pane, sort the file names by Process by clicking on the Process title.
  4. Locate the process that is using the file, right-click on it and choose End Process .

This should unlock the file and you can try deleting it again.

2. Delete the file in Safe Mode

If the previous method doesn’t work, you can try deleting the file by entering Windows Safe Mode . In this mode, only essential services are started, reducing the possibility of files or folders being in use:

  1. Restart your PC and enter Windows Safe Mode .
  2. Once launched, find the locked file or folder and try deleting it.

Again, the block is often removed and the deletion is successful.

3. Check and remove read-only protection

If the file still won’t delete, it may be set to “read-only.” You can check and change this setting as follows:

  1. Right-click the problematic file or folder and choose Properties .
  2. On the General tab , make sure the “ Read-only ” box is not checked. If it is, uncheck it and click OK .

If the file is still untouchable and the checkmark doesn’t clear, you probably don’t have the necessary permissions to access that file. In this case, contact your system administrator or whoever owns the file to log in as a Windows administrator .

Conclusions

Dealing with a file that won’t delete because it’s “in use” can be frustrating, but following these steps will help you resolve most common issues. Remember that deleting system or other users’ files without permission can compromise your PC’s stability or security: always proceed with caution.

Leave a Comment

Scroll to Top