Instructions to delete the file in use by another program

Windows File Explorer will display a notification whenever the user is trying to delete a file that is currently opened by another program or system. At that time, you cannot open, edit or delete this file. They are still running in the background and have been closed improperly.

Fortunately, you can close, rename, move or delete this file. Here is the solution for you.

How to fix the "File in Use" error

Note: If you want to bypass manual solutions, scroll down to the list of tools to help you unlock and delete the file in use.

Instructions to delete the file in use by another program

1. Close the program 

Obviously should do so. Did you just open the file and can't close it? If the file is closed, but the program is still running, close it and try again.

2. Restart the computer

Although restarting your PC is not very convenient, it is very easy to perform, does not require access to Task Manager or third-party tools. Rebooting also frees up RAM and can fix other annoying errors. Try to do so if you are looking for the cause of the error.

Instructions to delete the file in use by another program

3. Close the application via Task Manager

Why is restarting the system useful? Because it will start running again from the beginning and the entire process running in Task Manager will be closed. Instead of restarting, you can also try to close the application or activity running the file you want to close manually. This is the most successful method to fix the " file is open in another program " error .

Click Ctrl + Shift + ESC to open Task Manager . Alternatively, you can right-click on the Taskbar or click Ctrl + Alt + Del anywhere in Windows and select Task Manager. If you see the Windows 10 version , click More Details to make sure you're on the Processes tab . Now, browse for the application you used to open the " file in use ". For example, if you are viewing a document, search for Word.

Instructions to delete the file in use by another program

When you find the application name in Processes , select it and click End task in the bottom corner. This will close the entire program version. If this process cannot be found, try rebooting the system.

4. Change the File Explorer Process settings

By default, File Explorer opens its entire window in a single process (explorer.exe). However, it is possible that your settings force File Explorer to launch separate processes that could lead to conflicts with other operations.

Press Windows + E to open File Explorer. Go to View> Options> Change folder and search options .

Instructions to delete the file in use by another program

In the Folder Options window , switch to the View tab and find Launch folder windows in a separate process . Make sure this option is not checked. Click Apply to save any changes.

Instructions to delete the file in use by another program

If this option is unchecked in the first place, you can check to see if it fixes the error you're experiencing.

5. Turn off the File Explorer Preview panel

Previewing in File Explorer can cause conflicts such as the "file is open in another program" error.

Press Windows + E , switch to the View tab and press Alt + P. As you can see in the screenshot below, the preview panel is on the right.

Instructions to delete the file in use by another program

After closing the preview panel, repeat the above operation again to see if the " file in use " error has disappeared.

6. Force deletion of an existing file using the Command Prompt

You can skip File Explorer and force the deletion of an existing file using the command line.

First, you need to track the file path catalog in File Explorer. Press Windows + E to open File Explorer , locate the affected file and copy the file path.

Instructions to delete the file in use by another program

Now press Windows + S , find Command Prompt , right-click the corresponding result, and select Run as administrator . To navigate to the directory of the file in use, type cd [directory path you copied] and press Enter .

Instructions to delete the file in use by another program

Before you can process and force delete an existing file, you must temporarily close File Explorer. This will cause Taskbar, wallpaper and open folders to disappear. But don't worry, you can restart File Explorer and follow the instructions below.

To close File Explorer, press Ctrl + Shift + ESC , find Windows Explorer , right-click the process, and select End task .

Instructions to delete the file in use by another program

Return to Command Prompt . If this window is missing, press  Alt + Tab to access it.

Enter this command to delete the file, replacing all information between the brackets with your file name: del "File in Use.doc".

To restart File Manager, open Task Manager ( Ctrl + Shift + ESC ), click File> Run new task , enter explorer.exe , and then click OK . This action will restore the desktop to a normal state.

Unlock the file in use with a tool

Occasionally, the file in use is unusually locked. If trying to delete it with the Command Prompt doesn't work, or if the task is too difficult, try one of the following tools:

1. Microsoft Process Explorer

Process Explorer is more powerful than File Explorer. It not only lists all running applications but also which processes are holding your files. Very simply, users just need to open Process Explorer Search via Find> Find Handle or DLL (or press Ctrl + F ), enter the file name and wait for the list of processes to access your file.

Instructions to delete the file in use by another program

You cannot close this process from the search window, but you can use Process Explorer or Windows Task Manager to close the offending application.

2. Unlocker

The unlocker is used to add itself to the Windows context menu, that is, the user can right-click the current file and unlock it through this menu.

In Windows 10, open Unlocker, browse for the file, select the file and click OK . Unlocker will find and remove lock operation. Even if you can't find it, you can use Unlocker to delete, rename or move the desired file.

Instructions to delete the file in use by another program

If the "File in use" error persists, let Unlocker perform the necessary task at the next startup.

Instructions to delete the file in use by another program

3. LockHunter

Once installed, LockHunter will automatically add it to the Windows context menu. Users just need to right click and the file is locked and select What is locking this file? This opens a window showing the entire process of using that file. Now, users can choose Unlock , Delete (at the next system boot), or Unlock & Rename file .

Instructions to delete the file in use by another program

Still "File in use"? Boot in safe mode

If all else fails and you don't want to install the software, the last solution for you is to try booting in Windows Safe Mode. In case the file you want to delete can be automatically downloaded by another application, Unlocker is still effective in this case. However, if it is related to malware and you do not want to use third-party tools, you should definitely try this method.

In Windows 10, press Windows + I , go to Update & Security> Recovery . In Advanced startup , select Restart now. On the next screen, select Troubleshoot> Advanced Options> Startup Settings> Restart . When the computer restarts, you will see the Startup Settings screen, here, select Safe Mode.

Once in Safe Mode, navigate to the question file and try your luck again.

Hopefully the above methods will help delete files that have been successfully used by other programs. If you know of any other solution, don't hesitate to share with us.

Leave a Comment

5 File Explorer Search Tricks You Need to Know

5 File Explorer Search Tricks You Need to Know

Imagine being able to instantly find any file on your computer with just a few keystrokes! File Explorer offers powerful search tricks that make locating files a breeze.

How to Add Recycle Bin to File Explorer

How to Add Recycle Bin to File Explorer

This guide will show you all the steps needed to show the Recycle Bin in File Explorer, regardless of whether you are using Windows 10 or Windows 11.

7 Useful Changes Microsoft Should Make to File Explorer

7 Useful Changes Microsoft Should Make to File Explorer

File Explorer is still an important part of Windows, and with a few smart updates, Microsoft could improve things even more for users.

How to Rearrange Columns in File Explorer Windows 11

How to Rearrange Columns in File Explorer Windows 11

This tutorial will show you how to rearrange columns for a folder (directory) when in details view in File Explorer for a personal account in Windows 11 and Windows 10.

How to Show File Explorer Preview Pane on Windows 10/11

How to Show File Explorer Preview Pane on Windows 10/11

It's easy to preview files without opening them in Windows 10 thanks to the Preview Pane feature in File Explorer. You can see thumbnails of most images, videos, audio files, and some text-based documents.

Change Default Folder View of Search Results on Windows 10

Change Default Folder View of Search Results on Windows 10

Learn how to change the Default Folder View of Search Results on Windows 10 to enhance your file exploring efficiency. Follow our step-by-step guide to easily set your preferred view.

Microsoft may integrate Copilot into File Explorer in Windows 11

Microsoft may integrate Copilot into File Explorer in Windows 11

Microsoft is betting big on artificial intelligence and a partnership with OpenAI to make Copilot a reality.

How to permanently restore the old File Explorer experience in Windows 11

How to permanently restore the old File Explorer experience in Windows 11

File Explorer on Windows 11 is considered by most users to provide a good experience.

Why do many people prefer Windows File Explorer over macOS Finder?

Why do many people prefer Windows File Explorer over macOS Finder?

If you're a user of both systems, many people still come back to File Explorer because of its simplicity and more user-friendly features.

10 indispensable features of File Explorer

10 indispensable features of File Explorer

Most Windows users spend a lot of time in File Explorer. However, there are specific features that people rely on to streamline their workflow and increase productivity.

How to fix File Explorer crashes and freeze on Windows 10

How to fix File Explorer crashes and freeze on Windows 10

Many Windows 10 users have reported that in the process of loading data, they often encounter File Explorer hangs causing the File Explorer window to completely freeze. Especially when the number of files is large and the computer configuration is weak.

How to Fix Microsoft Edge Microphone and Camera Permissions

How to Fix Microsoft Edge Microphone and Camera Permissions

Struggling with Microsoft Edge microphone and camera permissions not working? Discover quick, step-by-step fixes to restore access in the latest Edge version. No tech skills needed!

How to Fix Microsoft Edge Audio Interface ASIO Driver

How to Fix Microsoft Edge Audio Interface ASIO Driver

Struggling with Microsoft Edge "Audio Interface" ASIO Driver crashes, no sound, or latency? Discover proven, step-by-step fixes to restore smooth audio playback and eliminate errors fast. Works on latest Windows updates!

Solving Connection Lost in Valorant Console Beta 2026

Solving Connection Lost in Valorant Console Beta 2026

Tired of "Connection Lost" ruining your Valorant Console Beta 2026 matches? Discover proven fixes for PS5 & Xbox, from quick restarts to advanced network tweaks. Stable connection starts here!

How to Speed Up Microsoft Edge Performance on Slow PCs

How to Speed Up Microsoft Edge Performance on Slow PCs

Frustrated with sluggish Microsoft Edge on your slow PC? Unlock lightning-fast browsing with our expert guide on how to speed up Microsoft Edge performance. Simple, effective tips for instant results!

How to Clean Up Microsoft Edge Leftover Files After Removal

How to Clean Up Microsoft Edge Leftover Files After Removal

Struggling with leftover clutter after uninstalling Microsoft Edge? Learn proven steps to clean up Microsoft Edge leftover files, free up disk space, and optimize your PC performance effortlessly. Step-by-step guide for Windows users.

Solving Microsoft Edge Winaero Tweaker Settings Fix

Solving Microsoft Edge Winaero Tweaker Settings Fix

Tired of Microsoft Edge Winaero Tweaker settings fix issues? Get permanent fixes for settings that won't stick, resets, and tweaks failing in the latest Edge versions. Step-by-step guide with screenshots for quick resolution.

How to Fix Microsoft Edge Google Search Lag Error 2026

How to Fix Microsoft Edge Google Search Lag Error 2026

Tired of frustrating delays? Learn how to fix Microsoft Edge "Google Search Lag" Error 2026 with proven, step-by-step guides. Restore smooth Google searches instantly – updated for 2026!

Best Offline Browsing Features in Microsoft Edge 2026

Best Offline Browsing Features in Microsoft Edge 2026

Discover the best offline browsing features in Microsoft Edge 2026 that keep you productive anywhere. From advanced caching to AI summaries, explore how Edge dominates offline web access.

Troubleshooting Microsoft Edge Status_Access_Violation Error

Troubleshooting Microsoft Edge Status_Access_Violation Error

Tired of Microsoft Edge crashing with Status_Access_Violation? Follow our step-by-step troubleshooting guide for quick, reliable fixes to restore smooth browsing. Works on latest Edge versions!

How to Uninstall Microsoft Edge via Command Prompt (CMD)

How to Uninstall Microsoft Edge via Command Prompt (CMD)

Struggling with Microsoft Edge? Discover the easiest way to uninstall Microsoft Edge via Command Prompt (CMD). Step-by-step CMD guide for Windows 11/10, complete removal without reinstalls. Works on latest updates!

How to Update Microsoft Edge to the Latest 2026 Version

How to Update Microsoft Edge to the Latest 2026 Version

Master how to update Microsoft Edge to the latest 2026 version with easy steps for Windows, Mac, Android & iOS. Boost speed, security & features instantly!

How to Fix Microsoft Edge Winaero Tweaker Fix 2026

How to Fix Microsoft Edge Winaero Tweaker Fix 2026

Struggling with Microsoft Edge crashes or errors after Winaero Tweaker tweaks? Get the ultimate guide on How to Fix Microsoft Edge "Winaero Tweaker" Fix 2026. Step-by-step solutions for smooth browsing in the latest updates. Quick, reliable fixes!

How to Fix Microsoft Edge Laptop Battery Threshold Fix

How to Fix Microsoft Edge Laptop Battery Threshold Fix

Discover proven ways to fix the Microsoft Edge Laptop Battery Threshold issue. Extend your battery life with step-by-step instructions, quick tweaks, and advanced tips for optimal performance on Windows laptops. Say goodbye to unexpected drain!

How to Permanently Delete Microsoft Edge WebView2 on Mac

How to Permanently Delete Microsoft Edge WebView2 on Mac

Struggling with unwanted Microsoft Edge WebView2 on Mac? Discover how to permanently delete Microsoft Edge WebView2 on Mac with our foolproof guide. Free up space, boost privacy, and reclaim your Mac effortlessly. Latest methods included!

Troubleshooting Microsoft Edge Integrated Graphics Memory

Troubleshooting Microsoft Edge Integrated Graphics Memory

Struggling with Microsoft Edge hogging integrated graphics memory? Discover step-by-step troubleshooting for Microsoft Edge "Integrated Graphics" Memory issues, boost performance, and reclaim your GPU resources today.