How To Delete Locked Files in Windows (2024)

Deleting files from your computer is usually a simple task, but some files can make this process harder than expected. Namely, some files may be locked and cannot be removed because they’re used by a program, the Windows OS, or other reasons.

Locked folders cannot be opened, deleted, or moved in Windows until the password is used, and finding a password for files you didn’t lock may not be possible. Although the “Delete” option will be visible, you won’t be able to click on it and delete the file.

However, if you want to delete a locked file, you can try a couple of approaches. In this article, we’ll walk you through the different methods available.

Safe Mode

The most common approach is to reboot your Windows PC in Safe Mode to delete a locked file. Here are the steps to do so:

  1. Openthe Start menu by clickingthe Windows logo in the bottom-left corner.
    How To Delete Locked Files in Windows (1)
  2. Select the gear-shaped symbol “Windows Settings” icon.
    How To Delete Locked Files in Windows (2)
  3. Choose the Windows “Update & Security”option.
    How To Delete Locked Files in Windows (3)
  4. Select the “Recovery”option. It’ll be on the left corner of the screen.
    How To Delete Locked Files in Windows (4)
  5. Click the “Restart Now”button. This will restart your computer and take you to the “Advanced Options”panel.
    How To Delete Locked Files in Windows (5)
  6. Select “Troubleshoot.”
    How To Delete Locked Files in Windows (6)
  7. Navigate to the “Advanced”tab in the screen center.
    How To Delete Locked Files in Windows (7)
  8. Select the “Startup Settings”optionson the right side.
    How To Delete Locked Files in Windows (8)
  9. Click the “Restart”buttonat the bottom of the window.
    How To Delete Locked Files in Windows (9)
  10. Choose “Enable Safe Mode” from the drop-down menu.
    How To Delete Locked Files in Windows (10)
  11. On the “Startup Settings” window, press “4”or “F4.”

Let Windows complete its restart. Enter your password if necessary. Once the operating system has completed the boot:

  1. Locate your file by openingthe Start menu, then the “File Explorer.”
    How To Delete Locked Files in Windows (11)
  2. Click the earlier locked file, then the “Home”tab, and then “Delete”in the following toolbar. Alternatively, you may select the file by clicking on it and pressing the “Delete”key.
    How To Delete Locked Files in Windows (12)
  3. Remove everything from the Recycle Bin. Your file should be removed from the system.
    How To Delete Locked Files in Windows (13)

You can exit Safe Mode by restarting your computer after removing your file.

Process Explorer

You can also use Windows Process Explorer to delete a locked file. For some users, this approach might be more convenient. Follow these steps:

  1. Access the locked file. Just double-clickthe file tomove it to the “Running” section of thePC’s Task Manager.
  2. Navigate to the Process Explorer webpage.
    How To Delete Locked Files in Windows (14)
  3. Click the “Download Process Explorer”button. This will allow the Process Explorer ZIP archive to be downloaded to your PC.
    How To Delete Locked Files in Windows (15)
  4. Double-click it in the location folder to open the “ProcessExplorer.zip” folder.
    How To Delete Locked Files in Windows (16)
  5. Select the “Extract to”option on the top of the screen. Atoolbar will display.
    How To Delete Locked Files in Windows (17)
  6. Choose “Extract all.” When you click it, a new window will appear.
    How To Delete Locked Files in Windows (18)
  7. Click“Extract.”

From here, the Process Explorer program will be installed, and the installation folder will open. Now, it’s time to use Process Explorer:

  1. Launch “Process Explorer.” If your PChas a 64-bit CPU, double-click the “procexp64”item in the folder.If your system is equipped with a 32-bit CPU, double-click “procexp”instead.
    How To Delete Locked Files in Windows (19)
  2. When asked, select “Agree.” This will launch the primary Process Explorer window.
    How To Delete Locked Files in Windows (20)
  3. Select “File” and choose “Show Details for All Processes.”
    How To Delete Locked Files in Windows (21)
  4. When asked, select “Yes”to minimize Process Explorer.
  5. Select “Find.”
    How To Delete Locked Files in Windows (22)
  6. Choose “Find Handle or DLL…”A search bar will appear.
    How To Delete Locked Files in Windows (23)
  7. Fill in the text box with the name of the locked file, then click the “Search”button to the right of the text field.
    How To Delete Locked Files in Windows (24)
  8. Choose the locked file. In Process Explorer, look for the highlighted file name towards the bottom of the screen.
    How To Delete Locked Files in Windows (25)
  9. Right-click the filename and choose “Properties.”
    How To Delete Locked Files in Windows (26)
  10. Click the “Close Handle”button. By doing so, the file is unlocked, and you can delete it.
    How To Delete Locked Files in Windows (27)

Finally, it’s time to remove the locked file:

  1. Locate your file. Open the Start menu, then the File Explorer and find the formerly locked file.
    How To Delete Locked Files in Windows (28)
  2. Remove the file. Click the previously locked file, then the “Home”tab, and “Delete”in the toolbar. Or, you may select the file by clicking on it and then pressing the “Delete”key.
    How To Delete Locked Files in Windows (29)
  3. Remove everything from the Recycle Bin.
    How To Delete Locked Files in Windows (30)

Command Prompt

Another way to delete a locked file is to use the Command Prompt. Follow these steps to do so:

  1. Launch the Command Prompt by typing “Command Prompt”in the Windows search box.
    How To Delete Locked Files in Windows (31)
  2. Select “Run as administrator.”
    How To Delete Locked Files in Windows (32)
  3. Type “del /f file name”in the popup box and press “Enter.”Please keep in mind that you must change the file name with the name of your own file.
    How To Delete Locked Files in Windows (33)

Note that a file deleted using the Command Prompt cannot be retrieved if you change your mind.

Run Chkdsk

First and foremost, open the Command Prompt window and run it as administrator. The steps to do so can be found above. To proceed, follow these steps:

  1. Type “chkdsk c: /f /r /x” into the command line window and press Enter. You can alter the drive letter if it is not C.
    How To Delete Locked Files in Windows (34)
  2. Find your file.
    How To Delete Locked Files in Windows (35)
  3. Delete the file.
    How To Delete Locked Files in Windows (36)
  4. Empty the Recycle Bin.
    How To Delete Locked Files in Windows (37)

Change the File Extension

Sometimes, this is the simplest way to erase a file that won’t be removedwhen you press the “Delete”key. If you have a file named filename.mp3, click it in File Explorer, press F2, and replace the extension (.mp3) with anything else, such as.txt.

However, you must first enable file extensions since Windows hides extensions for recognized file types by default. Go to the “View tab”and check the ‘File name extensions’ box to allow extensions on Windows.

Have Control Over Your Files

Even though these methods aren’t as straightforward as just simply deleting a file, sometimes these methods are the only way. Remember that Windows versions are different, and the steps may vary, but the main idea stays the same. The most significant difference is that the File Explorer is Windows Explorer in older versions.

Some third-party apps and programs can assist you in deleting a locked file. However, be careful with them. Please do your research before downloading them. Some might carry malware and harm your files.

Have you ever had trouble deleting a file? How did you solve it? Let us know in the comment section below!

Related Posts

How To Factory Reset a Locked Android PhoneHow To Fix Instagram: “Your Account Has Been Temporarily Locked”How To Fix a Facebook Account Temporarily LockedHow To Delete Temporary Files on a Windows 10 or 11 PCHow To Send Files from Mac to Windows and Vice Versa with Bluetooth

How To Delete Locked Files in Windows (2024)
Top Articles
Welcome to Social Security
Standard Chartered Share Price - LON:STAN Stock Research
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
Things To Do In Atlanta Tomorrow Night
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Msgr. Refugio Daniel

Last Updated:

Views: 5975

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Msgr. Refugio Daniel

Birthday: 1999-09-15

Address: 8416 Beatty Center, Derekfort, VA 72092-0500

Phone: +6838967160603

Job: Mining Executive

Hobby: Woodworking, Knitting, Fishing, Coffee roasting, Kayaking, Horseback riding, Kite flying

Introduction: My name is Msgr. Refugio Daniel, I am a fine, precious, encouraging, calm, glamorous, vivacious, friendly person who loves writing and wants to share my knowledge and understanding with you.