If you are using Windows 11, you might sometimes encounter the frustrating error message saying, “The action cannot be completed.” This error usually appears when trying to delete, move, or rename a file or folder. It can interrupt your workflow and cause confusion.
Fortunately, there are several simple solutions to fix this problem. Most of these methods do not require advanced technical knowledge and can be done step-by-step.
In this article, we will guide you through easy-to-follow steps to resolve the “The action cannot be completed” error on Windows 11. Whether you are a beginner or an experienced user, these tips will help you get back on track.
Let’s dive in and start fixing this issue together.
Quick Note Before You Begin
- Make sure you have administrative rights on your computer. Some fixes require these permissions.
- Check if the file or folder you are working with is open in any program. Open files cannot be modified or deleted.
- Restart your computer before trying any major fixes. Sometimes, a simple reboot clears temporary locks.
- Ensure your Windows 11 is up to date. System updates can fix bugs that may cause this error.
Step 1: Close Any Programs Using the File or Folder
The most common reason for the error is that the file or folder is currently in use. Windows prevents changes to files that are open in other programs to avoid data loss.
- Save your work and close any applications that might be using the file or folder.
- Check the Taskbar and system tray to see if any related software is running.
- If unsure, open Task Manager by pressing
Ctrl + Shift + Esc. - Look through the list under the “Processes” tab to find any program that might be using the file.
- Select it and click “End Task” to close it.
After this, try the action again, such as deleting or renaming the file.
Step 2: Restart Windows Explorer
Windows Explorer manages your files and folders. Sometimes it may freeze or lock the file unintentionally.
- Open Task Manager by pressing
Ctrl + Shift + Esc. - Find Windows Explorer in the list under the “Processes” tab.
- Right-click on it and choose Restart.
- This will refresh the file management system and may release the file lock.
Try your file operation again to see if the error is resolved.
Step 3: Use the Command Prompt to Force Delete or Rename
If the problem persists, using the Command Prompt can bypass some Windows restrictions.
- Press
Win + Sand type cmd. - Right-click on Command Prompt and select Run as administrator.
- Navigate to the folder containing the file using the
cdcommand. For example:
cd C:UsersYourUsernameDocuments - To delete a file, type:
del filename.extension
Replacefilename.extensionwith the actual file name. - To rename a file, type:
ren oldfilename.extension newfilename.extension
This method can remove stubborn files that Windows Explorer cannot handle.
Step 4: Check File Permissions
Sometimes, you may not have the right permissions to modify or delete the file. This can cause the error.
- Right-click the file or folder and select Properties.
- Go to the Security tab.
- Click on Edit to change permissions.
- Select your user account and ensure that Full control is checked.
- If it’s not, check it and click Apply, then OK.
- If you are denied permission, click Advanced and then Change next to the owner’s name.
- Type your username, click Check Names, then OK and apply the changes.
After updating permissions, try the action again.
Step 5: Disable Third-Party Antivirus or Security Software Temporarily
Sometimes, antivirus or security software can block file actions thinking they are suspicious.
- Temporarily disable your antivirus software by right-clicking its icon in the system tray and selecting Disable or Pause protection.
- Try the file operation again.
- Remember to enable your antivirus immediately after testing to keep your system protected.
Step 6: Boot into Safe Mode and Try Again
Safe Mode loads Windows with minimal drivers and services, which helps avoid conflicts.
- Click on Start, then select Settings (gear icon).
- Go to System > Recovery.
- Under Advanced startup, click Restart now.
- After restart, choose Troubleshoot > Advanced options > Startup Settings > Restart.
- When the Startup Settings menu appears, press
4to enter Safe Mode. - Try deleting, moving, or renaming the file in Safe Mode.
If it works here, the problem is likely caused by a program or service running in normal mode.
Alternative Methods and Advanced Options
If none of the above methods work, you can try the following:
- Use third-party tools: Programs like Unlocker or IObit Unlocker can help release locked files safely.
- Run System File Checker: Open Command Prompt as administrator and enter
sfc /scannowto check and repair corrupt system files. - Check disk errors: Use
chkdsk /f /rin Command Prompt to scan and fix disk problems that may affect file operations.
Frequently Asked Questions (FAQs)
Why does Windows say “The action cannot be completed”?
This usually happens because the file or folder is open in another program, you lack permissions, or the file is corrupted or locked by the system.
Can restarting my PC fix this error?
Yes, restarting clears temporary locks and releases files that were being used, often fixing the problem.
Is it safe to use third-party unlocker tools?
Most reputable unlocker tools are safe, but always download from official sources and use antivirus software to scan files before installing.
What if I get an “Access denied” error when trying to change permissions?
You may need to take ownership of the file or folder first using the Advanced Security Settings, or ensure you are using an administrator account.
Can antivirus software cause this error?
Yes, sometimes antivirus programs block file actions to protect the system. Temporarily disabling antivirus can help identify if it’s the cause.
When Nothing Works
If you have followed all these steps and still see the error, you may want to consider the following options:
- Use Windows Recovery options to repair your system.
- Contact Microsoft Support for professional help: https://support.microsoft.com
- Backup your important data and consider a system reset or reinstall if the problem is severe.
Conclusion
The “The action cannot be completed” error on Windows 11 can be caused by various simple issues like file locks, permissions, or software conflicts. By following the steps above — from closing programs and restarting Windows Explorer to adjusting permissions and using Safe Mode — you can usually resolve this problem quickly.
Remember to start with the easiest fixes and move to advanced options only if necessary. Taking these steps will help you manage your files without interruption and keep your Windows 11 system running smoothly.