One error preventing users from accessing files on their PC is that the action cannot be completed because the file is open in another program. This problem can be frustrating, as it causes delays when you need to open a file. The error occurs on a wide range of applications and processes, including Excel, OneDrive, Microsoft SharePoint, or Network Share. Dealing with it is confusing because it leads you to believe the app is running, but nothing is open. In this guide, we will show you how to fix the issue quickly and regain access to your file.
Can’t delete because the file is open? Here’s why:
There are some reasons for the the action can’t be completed because the folder or a file in it is open in another program error: ➡️ One of them is the accumulation of file thumbnails. ➡️ Problems with the File Explorer or the Recycle Bin. ➡️ A wrong group policy setting can prevent you from opening files.
How do you find which program is using a file?
This error will prevent you from opening or changing files. Read on to see how to delete a file when you get the action cannot be completed because the file is open in another program error message.
How do I fix the this action cannot be completed because the file is open error?
1. Use Disk Cleanup and repair HDD
In some cases, this problem can be caused by thumbnails, but you might be able to fix it by removing them. If the file is open in another program error appears again after applying this fix, you might need to repeat this process. Alternatively, you can use one of the best Windows 10 optimizer software to clean up and optimize your PC. These tools can enhance your PC by conducting in-depth cleaning and diagnosis. Also, they help in removing junk data and broken shortcuts, fixing Registry entries, and disabling unnecessary services. A significant tool can be Restoro because it is a system optimization software. First off, there is a free version you can download, but it is limited to just scanning your PC for problems and not fixing them. Hence, if you download the premium version, Restoro will unlock the contextual helpful features to help you fix the problem. Thus, this software helps you find and delete junk files taking up valuable space in your system. Restoro tries to fix or delete corrupted files from your Windows Registry to eliminate errors and crashes. It can also remove redundant junk such as temporary folders.
2. Empty the Recycle Bin
If you’re getting the file open in another program error, but know it isn’t, you might be able to fix it by emptying the Recycle Bin. This sounds like an unusual solution, but many users claim that emptying the Recycle Bin fixes the issue, so feel free to try it out. Also, to avoid adding files to the Recycle Bin, you can use the Shift + Delete shortcut or press and hold the Shift key while clicking the Delete option.
3. End the Windows Explorer process and restart it
Another temporary solution that can help you with the file is open in another program problem is to end the File Explorer process. Sometimes files can become locked, but after ending the File Explorer process, you should be able to unlock them. If you can’t end a task in Windows 10, look at this step-by-step guide that will help you do it in just a few steps.
4. Edit your group policy
You can solve The action cannot be completed because the file is open in another program error simply by modifying your group policy. All thumbnails will be disabled in File Explorer with the steps above, but the problem should be resolved entirely. If you don’t have the Group Policy editor on your Windows 10, get it on your PC by following our guide on how to install Group Policy editor.
5. Disable the Preview panel
According to users, The action cannot be completed because the file is open in another program can appear if you’re using the Preview panel. After disabling the preview panel, you should be able to modify your file without any problems. If you want to disable the Preview pane quickly, you can use the Alt + P shortcut.
6. Disable thumbnails
Another way to solve the file open in another program problem is to disable thumbnails entirely. This might not be the best solution, especially if you like thumbnails, but it might be a solid workaround you can use quickly. If you want at any point to restore thumbnails in Windows 10, check out this guide to learn how you can do it.
7. Modify your registry
You can also disable thumbnails by changing other values in your registry. To do that, follow these steps: There’s also another way to fix this problem using Registry Editor. To do that, follow these steps: If you’re frequently getting the file open in another program error, you might be able to fix it by making a few changes to the registry. After making the changes restart your PC. Remember that modifying the registry can be potentially dangerous, so use extra caution.
8. Delete the TEMP folders
If you keep getting The action cannot be completed because the file is open in another program error message, you might be able to solve the problem by deleting the temp folders. Windows stores temporary files in two temp folders, and sometimes temporary files can cause this problem to appear.
9. Set folder windows to open as separate processes
After making these changes, all folders will open as separate processes, and you won’t have any more problems with this error message. Few users claim that this option is causing the problem, so if Launch folder windows in a separate process option is enabled, be sure to disable it and check if that solves the error.
10. Disable the Homegroup
After leaving the Homegroup, you have to disable its services. To do that, follow these steps: Lastly, you have to make a few changes to the registry, and you’re good to go. To do that, follow these steps: Homegroup is a valuable feature, but sometimes it can cause this problem due to specific bugs. Disabling this feature isn’t the best way to solve this problem, but it might be helpful in some cases. Few users claim they fixed the problem simply by leaving their current Homegroup, so you might not have to disable the Homegroup service or make changes to the registry to fix this problem.
11. Use Unlocker
If you can’t access or delete specific files due to The action cannot be completed because the file is open in another program error, you might be able to fix it by using Unlocker. This is a simple tool that will allow you to unlock any files that are locked by your system and allow you to remove them. The tool is simple to use and free, so if you have any issues with this error, try Unlocker. Another third-party solution that can help you fix this problem is Lockhunter. A few users reported they solved the problem using this tool, so try it out.
12. Change your folder view
After changing the folder view, you should be able to modify the files from this directory without any problems. Since this is a workaround, you’ll have to repeat these steps for every directory giving you this error.
13. Disable Windows Search
Now you need to disable the Windows Search service. To do that, follow these steps: According to a few users, this problem can also be caused by Windows Search, and to fix it. You need to disable this feature entirely. Windows Search is a core component of Windows, and if you use it frequently, you might want to skip this solution and try a different one. Also, keep in mind that changing Indexing Options or disabling the Windows Search service can cause problems with specific features. So, if any issues occur, restore everything to the previous state.
14. Open and close your file
If you cannot move a particular file because the action cannot be completed because the file is open in another program message, you might want to try opening and closing that file. This is a simple workaround; by opening and closing the file, you’ll ensure that it’s not open in any application. This isn’t a permanent solution; you’ll have to repeat it with every file whenever this problem appears.
15. Use Safe Mode and Command Prompt
Remember that Command Prompt is an advanced tool, and if you’re unfamiliar with it, you’ll have to learn basic syntax before using this solution. Few users claim that you don’t even have to use Command Prompt. Simply start Safe Mode and find the problematic file, and you should be able to modify it without any problems.
16. Perform the Clean boot
Sometimes third-party applications can interfere with your PC and cause this and other errors. In fact, some applications tend to start automatically with Windows causing the problem to appear as soon as Windows starts. To fix the issue, you need to find the problematic application. This is relatively simple, and performing a Clean boot is the best way to do that. To find the problematic application, you need to repeat the same steps and enable startup services and applications one by one until you find the one causing this problem.
17. Use a different PDF application
According to users, Adobe Reader can sometimes cause this error message to appear. You need to download a different PDF reader and set it as a default application for PDF files to fix the problem. After doing that, the issue should be resolved entirely. A few users also claim that you can fix this problem simply by uninstalling Adobe Reader from your PC, so you might want to try that as well.
18. Use Optimize for option
After using Optimize for option, you should be able to delete files without any issues. You might get a warning while trying to do so, but you should be able to circumvent it. You might have to try optimizing your folder for different file types since it might take a few tries to find the setting that works for you.
19. Use Command Prompt to remove Thumbs.db file
In many cases, the leading cause of this problem can be Thumbs.db file. The file is in charge of storing your thumbnail cache, but sometimes these files can cause this and many other errors to appear. SPONSORED You need to remove those files from your partitions to fix the issue. This is relatively simple, and you can do it by following the above steps. Remember that this solution doesn’t require you to perform it on every partition. Instead, you can achieve it only on the one giving you this problem. However, you might have to delete thumbs.db from all partitions on your PC to stop this error from appearing.
20. Stop sharing for the problematic folder
After stopping sharing for the problematic folder, the issue should be resolved entirely, and you’ll be able to move, rename and delete your files without any problems.
21. Install the latest .NET Framework
Many Windows applications use .NET Framework; sometimes, this problem can occur if you don’t have the necessary .NET Framework installed. However, you can fix this problem simply by downloading .NET Framework from Microsoft’s website. This framework is completely free, and to fix the problem, you might have to install all versions of the framework and check if that solves the issue.
22. Try to rename file or directory using the Command Prompt
According to users, they sometimes cannot rename specific files because the action cannot be completed because the file is open in another program. However, you might be able to fix the problem simply by using Command Prompt to rename the problematic file or directory. Keep in mind that this is an advanced solution. So, if you want to use it, learn Command Prompt syntax beforehand. If for some reason, you’re getting Access denied message in Command Prompt, you might want to try running it from Safe Mode, as we showed you in Solution 15.
23. Change your security settings
If you’re getting this error frequently, it might be due to your security settings. Sometimes the problematic folder might lack specific security permissions causing the problem to appear. Some users suggest just adding your user account and granting it Full control over the affected directory. After doing that, the problem should be resolved entirely. This solution is a bit advanced, so you might be unable to perform it correctly if you’re a basic user. It’s also worth mentioning that you shouldn’t use this solution on system files and directories. So, if you’re having problems with those, you might want to try a different solution.
24. Change dllhost.exe security permissions
If you can’t change the security permissions for some reason, you might want to try ending COM Surrogate process. Few users claim this solution worked for them, so feel free to try it out. To end the COM Surrogate process, do the following: This error can sometimes occur due to problems with COM Surrogate process. This process is related to dllhost.exe, and you can fix the problem by changing the security settings for dllhost.exe. After ending the COM Surrogate process, the problem should be resolved. If the issue appears again, you might have to repeat this process.
25. End Windows Explorer process and use Command Prompt to delete the file
As you can see, sometimes Windows Explorer can interfere with Command Prompt and cause the the action can’t be completed because the folder or a file in it is open in another program error and other issues to appear. However, you should be able to avoid it by using this solution. Remember that this solution requires you to be familiar with basic Command Prompt syntax, so you might want to learn a few basic commands before you try it. Several users claim that you don’t even have to end Windows Explorer to delete the problematic file. According to them, you just have to start Command Prompt with administrative privileges and use the command below: DEL /F /S /Q /A C:UsersUserNameDesktopFile.txt Of course, use the correct path to the problematic file before running the command.
26. Use Process Explorer or Handle
If you’re an advanced user, you can try fixing this problem using Process Explorer or Handle. Process Explorer is similar to Task Manager, allowing you to see currently active processes along with the list of files they’re using. Using this tool, you can easily find the process holding your file and close it. Simply choose Find > Find Handle or DLL option from the menu and enter the file or directory name that gives you this error. Now you’ll see the process’s name and ID so you can quickly close it. Another application that can help you fix this problem is Handle. This is a third-party command-line tool, and it’s more complex than Process Explorer. Below are the steps to follow to use Handle: If you perform this process correctly, you’ll successfully release the file without ending its process. This is an advanced solution, so if you’re a basic user, you might experience some difficulties performing it.
27. Disable inheritance for the problematic file/directory
After making the changes above, you should be able to delete files and folders without any issues. Remember that this is an advanced solution, so you should use it only for non-system files and directories. This is because disabling inheritance for system files and directories can cause problems. So, you might want to use a different solution if you have this problem with system files.
28. Unmount all drives
Alternatively, you can unmount an ISO image right from the This PC. ISO images work as standard optical drives, and you can quickly eject them. Few users claim that you can fix the file that is open in another program problem simply by mounting the ISO file and unmounting it from the application. MagicDisk can sometimes show your ISO file as mounted when it isn’t. After unmounting it, all your mounted ISO files will be released, and you’ll be able to delete them without any problems.
29. Use Task Manager to close the problematic process
Sometimes this error message will tell you which program is holding your file. For example, many users reported this error while trying to remove Word documents. If you’re having a similar problem, you need to start Task Manager and check if the problematic application is running in the background. If so, end its process, and the issue should be resolved entirely.
30. Rename the file
According to users, if you can’t delete a specific file, you might be able to circumvent the problem simply by renaming that file. You just have to locate the problematic file and rename it to fix it. After doing that, restart your PC. Once your PC restarts, try to delete the file again. If, for some reason, you can’t rename the file, restart your PC and try to delete or remove the problematic file.
31. Use Ubuntu Live CD
If you’re frequently getting this error message, you might be able to solve it simply by using Ubuntu Live CD. You can use any other version of Linux if you want, but we recommend using an Ubuntu distribution due to its simplicity. Simply download the Ubuntu ISO file and create a bootable USB flash drive or Live disc. You need to boot from the USB flash drive or optical disc to start Ubuntu. After doing that, you should be able to find the problematic file with ease and delete it.
32. Remove the metadata using the EXIFtool
According to users, sometimes metadata of your files can cause this problem to appear. You need to remove all metadata from the problematic file to fix the issue. Users reported that they fixed the problem by using EXIFtool. This is a command-line tool, so you might have to learn its syntax before you can successfully remove the metadata. After you remove the metadata, you’ll be able to delete the file without any problems.
33. Change the owner
Sometimes you can fix this problem simply by changing the file owner or directory. Keep in mind that changing the owner of system files can cause specific issues, so use this solution only for non-system files. If you’re interested in how to take ownership of a file or a folder in Windows 10, check out this fantastic guide.
34. Try to copy another file
One little workaround that might help you with this problem is to copy another file. To do that, locate any other file, right-click it and choose Copy from the menu. After that, locate the folder or file you couldn’t delete previously and try to delete it again. By copying another file, you’ll release other files from File Explorer, allowing you to delete them. Remember that this is a workaround; you’ll have to repeat it for all affected files. It’s also worth mentioning that this isn’t a universal solution meaning that this workaround might not be able to fix the problem in all cases.
35. Make sure that the file isn’t set to read-only
Sometimes this error message can appear if you’re trying to modify a file or directory to read-only mode. To fix the issue, you need to disable the read-only mode. After making these changes, you should be able to modify the file or folder without any issues.
36. Be sure that your Windows is up to date
Sometimes, this error message can be caused by a bug in Windows 10. Most bugs are addressed via Windows updates. By default, Windows 10 automatically downloads the updates, but sometimes you might miss an important update. After you update Windows to the latest version, the problem should be completely resolved. If your system is already up to date, you’ll have to use a different solution to fix this problem.
How do you force delete a file that is open in another program?
Note that using the del command like this completely deletes the file. With this, there will be no way to get the file back as it won’t be available in the Recycle Bin. But it is good if you cannot delete files because it says the file is open in another program. The action cannot be completed because the file is open in another program error message can cause many problems on your PC. This error will prevent you from accessing or removing specific files. But you should be able to fix it using one solution. Are you facing other problems, like an unexpected error stopping you from opening this file? Then, check our guide to fix it quickly. If you have any other questions, don’t hesitate to leave them in the comments section below, and we’ll be sure to check them out.
SPONSORED
Name *
Email *
Commenting as . Not you?
Save information for future comments
Comment
Δ