3 Ways To Force Delete Lock File In Windows

Views: 115
Spread the love
Read Time:1 Minute, 33 Second

Top 3 Ways to force delete lock file in Windows

To Force delete lock file in Windows,When files are locked with password or cannot be deleted with simple method, we use other way out.

Files or folders  are locked cannot be deleted in Windows. Here are the top 3 methods to force delete files or folders.

1. Using Linux to delete lock file

One easy way to do away with problematic files that cannot be deleted conventionally is to boot from a Linux Live CD or Live Bootable USB and use the Places functionality to access your Windows installation and delete the file from Ubuntu OS before booting back into your Windows installation.

2. Delete the File/Folder with Command Prompt

Press the Windows key + R and type cmd to open the Command Prompt or just search for Command Prompt at the start.

In the Command Prompt, enter del and location of folder or file you want to delete, and press “Enter” (for example del c:\users\Max\Desktop\demo.txt

del c:\users\Max\Desktop\demo.txt 

3. Enter Safe Mode to Unlock and Delete lock File

Boot into Safe Mode to unlock and delete the file. 

  • Open “Settings” > Click on “Update & Security” > Click on “Recovery” > Under “Advanced Startup”, click the “Restart now” button.
  • Click on “Troubleshoot” > “Advanced options” > “Startup Settings”.
  • Click the “Restart” button.
  • On “Startup Settings,” press F4 to enable Safe Mode.
force delete a locked file in Windows

While in Safe Mode, use File Explorer to locate and delete lock file that were previously locked, then simply restart your device as you would normally to exit Safe Mode.

Leave a Comment