This window means some program still has the file open, so closing that program lets you delete it right away. If you don't know which program it is, you can search for the file name in Resource Monitor, and if that fails, deleting it right after a Restart works in most cases.
If you don't know what is holding it, PC Buster finds the program that has the file open, closes it and deletes the file to the Recycle Bin (free). Get PC Buster · details
| Window | Meaning | What to do |
|---|---|---|
| File In Use / Folder In Use "The action can't be completed because the file is open in …" | A program has the file (or a file inside the folder) open. | Find and close that program with steps 2–4 below. |
| "You need permission to perform this action" | Your account isn't allowed to delete it here. Often a Windows or program folder. | See step 5. |
| It comes back after deleting | A program running in the background keeps creating the file again. | See step 6. |
If the window names a program (for example "open in Microsoft Word"), close that program and click Try Again. The hard case is when it only says "another program".

Buttons, not commands. PC Buster finds what opens ad pop-ups, clears junk and points to what is broken. Checks and cleanup are free.
Free downloadWhen deleting a folder, an Explorer window that has the folder open, or thumbnails Explorer created, often stop it from being deleted.
When you don't know what is holding the file, use Resource Monitor, which comes with Windows.
resmon
Before ending it, check whether that program has unsaved work. Anything unsaved is lost when it ends. If the name shows as explorer.exe, restarting Explorer as in step 3 is the better choice.
C:\Windows and C:\Program Files are protected from deletion on purpose. To get rid of a program, don't delete its files; uninstall it in Settings > Apps > Installed apps (Windows 10: Apps & features). If it won't uninstall there, see Programs that won't uninstall from Settings.If none of the above works, turning the PC off and on is the surest fix. Click Restart, not Shut down. A normal shutdown in Windows uses Fast Startup and carries the previous state over to the next boot, so whatever was holding the file can still be there. When the PC is back, delete the file before opening other programs.
If it still won't delete right after the restart, or the same file comes back after you delete it, a program that starts with Windows is using it. On Task Manager's Startup apps tab (Windows 10: Startup tab), set that program to Disable, restart, and delete the file. If an unknown program keeps coming back and ads pop up too, see Chrome ad pop-ups first.
A file that keeps refusing to delete in Explorer even though nothing is holding it can be deleted from Command Prompt. This deletes it immediately without going through the Recycle Bin, so double-check the path.
cmd and open Command Prompt.del /f, paste the copied path after it as below, and press Enter. For a folder, use rd /s as in the second line.del /f "C:\Users\YourName\Downloads\file-to-delete.mp4" rd /s "C:\Users\YourName\Downloads\folder-to-delete"
rd /s asks once before deleting. It deletes only after you press Y.
C:\Windows can stop Windows from starting. If you are deleting to free up space, see C drive full.If you need to bring back a file you deleted by mistake, see How to recover deleted files.
PC Buster's Force Delete Files (under Tools) shows the name of the program holding a file once you pick it with Choose file. Click Delete and it tells you which programs it will close, asks you to confirm, closes them and sends the file to the Recycle Bin. If it still won't delete, it asks whether to schedule the deletion for the next time the PC starts (administrator confirmation needed; a scheduled deletion skips the Recycle Bin). Folders can be deleted with Choose folder, and whole Windows or user folders are blocked from deletion. It is free.
Recover deleted filesFind duplicate photosExcel or Word file won't openRemove a program that won't uninstallSee all fixes