This error message occurs when the folder or files in the folder are currently used by Windows or another program running. To successfully delete this file, try following the steps.

Using Windows Resource Monitor

  • Press the Windows key on your keyboard, type resmon.exe and press Enter.
  • In the window that appears, click the CPU tab.
  • In the third bar from the top, see the label Associated Handles.
  • Type the name of the file you’re trying to close in the Search Handles bar, and then click the magnifying glass icon.
  • Locate the program using your file.
  • Right-click the program using the file in question and select End Process.

If you cannot find the file with the steps above, try the delete option in the next section.

Try waiting a few moments and then deleting the file again. Although it isn’t typical, sometimes a program may encounter an issue, which makes it slower to close. In this instance, the program may still be using the file you’re attempting to delete, which generates this error message.

Delete file in Safe Mode

It may be possible to delete the file or folder through Windows Safe Mode. In Safe Mode, many Windows programs are not running, making it easier to delete files and folders.

  • Access Windows Safe Mode.
  • Find the file or folder you want to delete and attempt to delete it.

I’m still unable to delete the file

If you’re still unable to delete the desired file or folder, that file or folder may be read-only. As read-only, the file or folder is essentially write-protected, meaning it cannot be edited or deleted.

To remove the file’s read-only status, you can try the following steps.

  • Using your mouse, right-click the file or folder.
  • In the menu that opens, select Properties.
  • On the General tab, find the Read-only option. If the option is checked, uncheck it, and click OK.

If the Read-only option isn’t checked, or the option is checked but cannot be unchecked, it’s likely you’re not the owner of the file or folder. If another person is the owner, that person must delete the file or folder, or they grant you permission.

  • How to delete a file, directory, or folder.
  • How to get ownership of old Windows files.
  • See our delete definition for further information and related links.
  • Microsoft Windows help and support.