• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Techbout

Technology Simplified.

  • iOS
  • Windows
  • Mac
  • Internet

How to Delete Locked Files in Windows 11/10

By: Sam Patwegar | September 5, 2024

If you are unable to delete a File or Folder on your computer, you can find below different methods to Delete Locked Files on a Windows computer.

In most cases, if you are unable to delete a File on your computer, the File is either being used by another program/process or it is a Shared File that is currently being used or left open by another user.

Another common reason for Windows preventing a File or Folder from being deleted or modified is due to your User Account lacking the permission to Edit or Delete that particular File.

Delete Locked Files in Windows 11/10

Depending on the reason provided by the error message, you can use the following methods (as applicable) to delete the locked file.

Advertisement

1. Shut Down the Computer

When you Shut Down the computer, the App, Program or the Service that was using the Locked File will be terminated and this should allow you to delete the Locked File.

Shut Down the Computer > After 60 seconds, restart the computer and see if you can delete the File.

2. Start Computer in Safe Mode

If you are unable to Shut Down the computer or if the first method did not help, restart the computer in Safe Mode and try to delete the File.

1. Right click on the Start button and click on Run.

2. In the Run Command Window, type msconfig and click on OK.

Open System Configuration Using Run Command

3. On the next screen, switch to Boot tab and select Safe Boot with Minimal option and click on OK.

Boot Options in System Configuration Screen

4. On the pop-up, click on Restart to start the process of starting the computer in Safe Mode.

System Configuration Restart Pop-up on Windows PC

When your computer Restarts in Safe Mode, you should be able to delete the File.

After deleting the File, you can Exit Safe Mode by unchecking the Safe Boot option and restarting the computer.

3. Delete Locked File Using Command Prompt

You won’t be able to delete the Locked File, if it belongs to another user Account or if you do not have the permission to delete the File.

If this is the case, you need to find the location path of the File on your computer and delete the File using Command Prompt as Admin.

1. Right-click on the Locked File that you want to delete and select Properties option in the drop-down menu.

Open File Properties

2. On Properties screen, switch to Details tab and note down the Folder Path.

Folder Path

In this case, the Locked File Test.rtf is located at Folder Path C:\Users\Username\Desktop.

3. Next, type CMD in the Search bar > right-click on Command Prompt in the search results and select Run as Administrator option.

Open Command Prompt As Admin

4. On the Command Prompt screen, type del FolderPath\FileName.extension and press the Enter key.

Delete File Using Command Prompt

Once the Command is executed, the Locked File should be force deleted and removed from the computer.

Sam Patwegar

10+ years experience in writing fluff-free troubleshooting guides with just the right and required amount of related information. Equally capable of In-depth technical writing.

Related
  • How to Zip Files On Windows 11/10 Computer
  • How to Reinstall Google Chrome on PC and Mac
  • How to Uninstall Apps and Programs in Windows 11/10

Primary Sidebar

Advertisement

Recent Posts

  • Fix: System Tray Icon Missing in Windows 11/10
  • How to Use Internet Explorer in Windows 11
  • Fix: Cast to Device Not Working in Windows 11/10
  • Fix: MacBook Camera Not Working Issue
  • Multiple Ways to Disable Face ID on iPhone

Advertisement

© 2025 Techbout.com · All Rights Reserved
About | Privacy Policy | Terms | Contact
Twitter(X) | Facebook