Software⏱️ 4 min read📅 2026-06-19

How to Fix: Deleting network files, I usually get "action cannot be completed blah file is in use" error. Must wait to delete

Windows error fix for deleting network files

Quick Answer: Try using the 'Take ownership' option in File Explorer to delete files, or use a third-party tool like Unlocker to bypass file locking issues.

The 'action cannot be completed, file is in use' error can be frustrating when trying to delete network files on Windows Server 2003 and Windows 7. This issue typically affects users who are working with shared folders or network drives, where the act of selecting a folder or opening it may temporarily lock the file, preventing deletion. In this guide, we will walk you through the root causes of this error and provide two primary methods to resolve the issue.

Dealing with this error can be particularly frustrating when combined with the confirmation prompt for system files like thumbs.db. In this guide, we will focus on resolving both issues simultaneously.

🔍 Why This Happens

  • The 'action cannot be completed, file is in use' error often occurs due to the way Windows handles open files and folders. When you select a folder or open it, Windows may temporarily lock the file to prevent data corruption or other issues. This locking process can cause the deletion action to fail, requiring you to wait for the file to become available.
  • Another possible reason for this error is related to the thumbs.db system file, which is often created when thumbnails are generated for images on a Windows system. The confirmation prompt for thumbs.db files is a standard feature in Windows that warns users about potentially deleting important system files.

🚀 How to Resolve This Issue

Using the Task Manager to Force Close Applications

  1. Step 1: Open the Task Manager on your Windows Server 2003 or Windows 7 machine by pressing Ctrl+Shift+Esc. Alternatively, you can right-click on the Start button and select 'Task Manager'.
  2. Step 2: In the Task Manager, look for any applications that may be using the network folder you're trying to delete. Check if there are any suspicious processes running in the background.
  3. Step 3: Right-click on the application process and select 'End task' or 'End process tree' to force it to close. This should release the lock on the file, allowing you to delete it.

Using Unlocker to Delete Files

  1. Step 1: Download and install a third-party file unlocker tool like Unlocker from the official website.
  2. Step 2: Run the Unlocker tool and select the network folder that's locked. The tool will scan the folder for open files and display a list of processes holding onto the files.
  3. Step 3: Manually select the process holding onto the file and click 'End Process Tree' to force it to close. This should release the lock on the file, allowing you to delete it.

💡 Conclusion

To resolve the 'action cannot be completed, file is in use' error when deleting network files on Windows Server 2003 and Windows 7, try using either the Task Manager or a third-party file unlocker tool. If you're also dealing with the thumbs.db confirmation prompt, consider disabling it by modifying the Windows registry settings. By following these steps, you should be able to delete your network files without any issues.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions