• Skip to main content
  • Skip to primary sidebar

Techbout

Technology Simplified.

  • Windows
  • iOS
  • Mac
  • Android
  • Office

How to Delete Locked Files in Windows 11/10

By: Waseem Patwegar

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

Delete Locked Files in Windows 11/10

Delete Locked Files

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.

In most cases, you will see an error message providing the reason for Windows preventing you from deleting the File.

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

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.

Right click on the Start button and click on Run. In the Run Command Window, type msconfig and click on OK.

Open System Configuration Using Run Command

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

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.

Related
  • How to Zip Files in Windows 10/11
  • How to Disable Background Apps in Windows 11

You May Also Like
    • Find Router IP Address in Windows 11
      How to Find Router IP Address in Windows 11
      • Microsoft Photos App Not Working In Windows 11
        Fix: Microsoft Photos App Not Working In Windows 11
        • High CPU Usage By Service Host Local System
          Fix: High CPU Usage By Service Host Local System

Primary Sidebar

Twitter
Facebook



Gadget Guide

  • Should You Buy MacBook or Windows Laptop
  • How Much RAM Is Required in a Computer?
  • 12 Reasons to Switch to Chromebook
  • Check RAM Size & Type In Windows 10/11
  • Which Chromecast Model to Buy



About | Privacy Policy | Disclosure | Terms | Contact
© 2023 Techbout.com · All Rights Reserved