Cannot delete file because it is open in Windows Explorer

You’ve probably encountered the “This action cannot be completed because the file is open” error message when attempting to rename, transfer, or delete a file. Computers are built to support a lot of software simultaneously, but sometimes these programs prevent us from manipulating files. Luckily, several methods will resolve this issue and allow you to modify files easily.

Cannot delete file because it is open in Windows Explorer

Continue reading to learn how to bypass the “This action cannot be completed because the file is open” error.

This Action Cannot Be Completed Because the File Is Open in Windows Explorer

The Windows File Explorer operates in the background of your computer’s system, and it can get in the way of file modifications.

Restarting File Explorer will make it more efficient so that it doesn’t interfere with your attempts to delete or rename a file. To do so:

  1. Navigate to the Start button and right-click.
    Cannot delete file because it is open in Windows Explorer
  2. Select the Task Manager option.
    Cannot delete file because it is open in Windows Explorer
  3. Press Processes, scroll to the bottom of the list, and tap Windows Explorer.
    Cannot delete file because it is open in Windows Explorer
  4. Choose Restart.
    Cannot delete file because it is open in Windows Explorer
  5. Wait for about a minute before attempting to manipulate the file again.

Declutter the Recycle Bin

A cluttered recycle bin can also block your Fire Explorer. To clear it out and improve the Explorer’s functioning:

  1. Find the Recycle Bin icon on your desktop and right-click.
    Cannot delete file because it is open in Windows Explorer
  2. Choose the Empty Recycle Bin option. The program might ask you to confirm the decision.
    Cannot delete file because it is open in Windows Explorer

When you’ve emptied the Recycle Bin, return to your file to see whether this method has resolved the issue.

Stop Background Processes

Another way to optimize File Explorer is to ensure all background processes have been terminated. To do so:

  1. Simultaneously hold the Windows and R keys and enter resmon.exe into the pop-up field.
    Cannot delete file because it is open in Windows Explorer
  2. This action will launch the Resource Monitor. Find the CPU section and open the Associated Handles tab.
    Cannot delete file because it is open in Windows Explorer
  3. Type the name of your file or folder, and the Resource Monitor will identify the processes tied to the file.
    Cannot delete file because it is open in Windows Explorer
  4. When the Monitor has finished its analysis, right-click on the identified processes and press End Process to terminate them.
    Cannot delete file because it is open in Windows Explorer

After performing the action, you should have no difficulty renaming, moving, deleting, or modifying the file.

Clean Up Your Thumbnails

Thumbnails also hold file data that the Explorer can use to run different processes, stopping you from performing specific file actions. Disabling your thumbnails will stop those processes.

To do so with Disk Cleanup:

  1. Select This PC in File Explorer.
    Cannot delete file because it is open in Windows Explorer
  2. Right-click on your primary disk and press Properties.
    Cannot delete file because it is open in Windows Explorer
  3. Tap Disk Cleanup.
    Cannot delete file because it is open in Windows Explorer
  4. Choose the Thumbnails option and click the OK button.
    Cannot delete file because it is open in Windows Explorer

The thumbnails will be removed, allowing you to change your files without problems.

Deleting thumbnails can be done with the Command Prompt as well. Here’s how it works:

  1. Find the Command Prompt using the Windows search menu.
    Cannot delete file because it is open in Windows Explorer
  2. Perform a right-click and tap Run as administrator.
    Cannot delete file because it is open in Windows Explorer
  3. Check that the main system drive is selected. If that’s not the case, type C: and press the Enter key.
  4. Type del /ash /s thumbs.db into the appropriate field and hit Enter once more.
    Cannot delete file because it is open in Windows Explorer

It might take several minutes until your thumbnail libraries are cleared. Once the process is over, try manipulating your file to ensure the problem has been resolved.

Block Thumbnail Creation

If thumbnails have been stopping you from modifying your files, then you might want to stop your PC from generating new thumbnails.

To do so, use File Explorer:

  1. Select This PC and press View in the upper portion of the program.
    Cannot delete file because it is open in Windows Explorer
  2. Tap Options in the pop-down menu.
    Cannot delete file because it is open in Windows Explorer
  3. Click View and go to the bottom of the window.
    Cannot delete file because it is open in Windows Explorer
  4. Press Always show icons, never thumbnails in the Files and Folders tab.
    Cannot delete file because it is open in Windows Explorer
  5. Hit Apply and tap the OK button to record the changes.
    Cannot delete file because it is open in Windows Explorer

Your PC’s “Performance Options” are another tool for disabling thumbnail creation:

  1. Launch This PC, hold the cursor over the empty area beneath your disks and right-click.
    Cannot delete file because it is open in Windows Explorer
  2. Select Properties and go to Advanced system settings.
    Cannot delete file because it is open in Windows Explorer
  3. Navigate to the Performance section in the Advanced tab and tap Settings.
    Cannot delete file because it is open in Windows Explorer
  4. Remove the checkmark from the Show thumbnails instead of icons option.
    Cannot delete file because it is open in Windows Explorer
  5. Press Apply and click OK for the PC to register the changes.
    Cannot delete file because it is open in Windows Explorer

The Group Policy Editor is an additional method to stop the PC from making thumbnails for your files. To use it:

  1. Simultaneously press the Windows and R keys and enter gpedit.msc into the appropriate field.
    Cannot delete file because it is open in Windows Explorer
  2. Tap OK or Enter.
    Cannot delete file because it is open in Windows Explorer
  3. Find User Administration and go into Administrative Templates.
    Cannot delete file because it is open in Windows Explorer
  4. Select Windows Components and choose File Explorer.
    Cannot delete file because it is open in Windows Explorer
  5. Press File Explorer to view a list of available options.
    Cannot delete file because it is open in Windows Explorer
  6. Double-tap the Turn off caching of thumbnails in hidden thumbs.db files option.
    Cannot delete file because it is open in Windows Explorer
  7. Change its setting to Enabled.
    Cannot delete file because it is open in Windows Explorer
  8. Click Apply and press OK. The PC will now implement the changes.
    Cannot delete file because it is open in Windows Explorer

Turn Off Panel Mode

Disabling your PC’s Panel Mode can also resolve File Explorer interference. To do so:

  1. Launch This PC and tap View at the top of the screen.
    Cannot delete file because it is open in Windows Explorer
  2. Click Preview pane to turn off Panel Mode. If enabled, the option will be colored blue.
    Cannot delete file because it is open in Windows Explorer

Return to your file or folder and check whether this action has enabled file modification.

Enable File Explorer to Read Files as Different Processes

The File Explorer registers all opened files as a single process which can overload the program and result in occasional errors. However, enabling the Explorer to read each file as a separate process will bypass the problem. The steps are as follows:

  1. Select This PC and click View.
    Cannot delete file because it is open in Windows Explorer
  2. Choose Options from the drop-down bar.
    Cannot delete file because it is open in Windows Explorer
  3. Press View in the new window and tap Launch folder windows in a separate process.
    Cannot delete file because it is open in Windows Explorer
  4. Click Apply and hit the OK button to turn on the adjustments.
    Cannot delete file because it is open in Windows Explorer

Your internet browser may also block you from manipulating certain files. If you’re using Google Chrome, there’s a relatively simple fix. To resolve the issue:

  1. Exit Google Chrome and restart your PC.
    Cannot delete file because it is open in Windows Explorer
  2. Open your browser and press the CTRL and Tab keys simultaneously. The action will check whether the file is still opened.
    Cannot delete file because it is open in Windows Explorer
  3. If the file is open in a new separate window, close it and restart the PC again.
  4. Once the system is up, go through your files to see if there are several copies of the same file. They have numerical markers like (1) or (2) after their name.
  5. If such copies exist, select and delete them.
  6. Restart the PC once more and try to modify the file.
    Cannot delete file because it is open in Windows Explorer

Opening a copy of the file can sometimes prevent you from changing the original. Deleting the duplicate files should allow you to move or delete files smoothly.

As part of the Windows software suite, Microsoft Outlook can get in the way of remaining, moving, or deleting files and emails. To bypass the error:

This Action Cannot Be Completed Because the File Is Open in Microsoft Outlook

  1. Select the Microsoft Outlook file.
  2. Click on the file’s name and choose the Delete option. The file will remain open.
  3. When the error message appears, don’t close it.
  4. Close the file window and return to the message box.
  5. Press the Try Again button.

This method should allow you to delete an Outlook file or email successfully.

If you’re using an outdated Windows operating system, switching to the latest version will optimize Outlook’s performance. Outlook glitches can be related to OS problems, so an improved version will make all Microsoft programs run more efficiently.

This Action Cannot Be Completed Because the File Is Open in Discord

This error can prevent you from deleting the Discord folder in the local DataApp folder. But powering on the computer in Safe Mode will minimize software interference, so you should be able to complete the action without complications. To do so:

  1. Restart the PC.
    Cannot delete file because it is open in Windows Explorer
  2. Hold down the F8 key before the Windows logo shows up when the PC begins restarting.
    Cannot delete file because it is open in Windows Explorer
  3. If you’re using several operating systems, select the one you wish to run in Safe Mode and press F8.
  4. In the Advanced Boot Options window, pick the Safe Mode option you want to work in, then hit Enter.
  5. Log in with an administrator account.

Remember to switch the PC back to its regular settings once you’ve successfully adjusted your files.

Complete Every Action

“This action cannot be completed because the file is open in another program” message is frustrating and can stop users from fully controlling their files. However, you can solve this problem quickly by relying on one of the methods mentioned in this article.

When did you last encounter this error? Which method helped you get past it? Let us know in the comment section below.

Disclaimer: Some pages on this site may include an affiliate link. This does not effect our editorial in any way.

Send To Someone

Missing Device

How to delete the action cannot be completed because the file is open in Windows Explorer?

Empty the Recycle Bin and Restart. The action can't be completed because the file is open error is one of the most common errors Windows users may encounter when trying to delete a file. The easiest way to fix this error is to empty the Recycle Bin.

Why won't File Explorer let me delete a file?

In most cases, the reason you cannot delete a file is quite simple. The file or a file from the folder is still open or being used by another program.

How can I delete a file that is open in system?

Open the “Task Manager” via the search bar or use the “Ctrl + Alt + Delete” shortcut. Click on the “Details” option at the bottom-left corner. Look for the program you want to delete in the “Processes” tab. Click on it and then choose the option “End Task” at the bottom-right corner.