Tech

How to Force Delete Stubborn Files in Windows 11


When you delete a file on your Windows PC, Windows usually does all the heavy lifting. In rare cases, however, users sometimes can’t delete stubborn files with the usual methods.

Is there a file on your PC you can’t erase with File Explorer’s standard deletion options? If yes, you might be able to force delete that file with the methods in this guide.

Why Can’t I Delete a Stubborn File?

Windows locks files when they’re in use by programs. A file in a locked state cannot be deleted. That file locking is the most common reason users can’t delete files.

Even when you don’t have any software open on the taskbar, there might be a background program running that’s still using a file. Or Windows might not have fully completed an unlock operation for a file. In such a scenario, you might see a file in use message pop up when trying to delete it.

There might be other potential reasons you can’t delete a file. The file you’re trying to delete might be virus infected or corrupted in some way. There might even be an issue with your hard drive or Recycle Bin. However, such causes for ‘undeletable’ files are rarer.


How to Delete Stubborn Files With the Command Prompt

This method involves force deleting a file from the Command Prompt. When standard deletion methods fail, entering a special command for deleting a read-only file might do the trick. This is how you can force delete a file from the Command Prompt:

  1. Click Start and then inside the search box on the menu.
  2. Enter CMD in the search box.
  3. Run Command Prompt with elevated user rights by selecting Run as administrator for that search result.
  4. Open the folder that includes the file you can’t delete by entering a cd (change directory) command with the full folder location in the Command Prompt. That command looks like this:
    cdfolder1folder2folder3
  5. Enter this force delete command:
    del /f file 
  6. Press Return to execute the deletion command.

Replace file in the force delete command above with the actual title of the file you’re trying to erase. If the file’s title has spaces, you’ll also need to add inverted commas around the name. For example, a command to force delete a PNG file titled holiday photo would look like this:

del /f holiday photo.png

You can also expand that command by adding an /a parameter to it. The /a parameter deletes files with a wider variety of attributes. That command looks like this:

del /f /a file

How to Delete Stubborn Files With a Hotkey

Windows 11’s Shift + Del hotkey might force delete a stubborn file if there’s an issue with your Recycle Bin. Pressing the Shift + Del key combination will usually erase a file without it going into the Recycle Bin. So, that keyboard shortcut might be worth a try when other deletion methods don’t work.

As an additional extra, try closing background programs and apps before selecting to delete a file with that hotkey. Close any software windows (except File Explorer) on your taskbar. Then go into Task Manager and disable superfluous program services like this:


  1. Open the Power User menu by right-clicking Start and selecting Task Manager.
  2. Click Processes in Task Manager to view that tab.
  3. Select background processes for third-party programs and click End task.

  4. Also, check if your system tray includes any program icons. Right-click the icons for any superfluous programs there and select to close them.

  5. Then select the file you can’t delete in Explorer, and press the Shift + Del hotkey.

How to Delete Stubborn Files in Safe Mode

Safe mode is a special troubleshooting mode that enables users to start Windows with only the minimal essential drivers and startup items. As that mode disables many superfluous background programs, it’s unlikely the stubborn file you can’t delete will be locked (in use) in safe mode. So, you might be able to erase a stubborn file in safe mode with any regular deletion method.

You can select to boot into safe mode from the Advanced Startup Options Menu. Selecting Startup Settings and Restart from there will bring up a menu that includes different safe mode option. Pressing 4 will select the Enable Safe Mode option.

When you’re in safe mode, bring up the directory that contains the stubborn file. Then select the file to erase, and press Explorer’s trashcan (Delete) button. Hopefully, that regular file deletion option will work in safe mode.

How to Delete Stubborn Files With ForceDelete

ForceDelete is a third-party program that provides a solution for erasing locked files you can’t delete in Windows 11. That software enables users to force delete locked files by dragging and dropping them into a Drop Files Here area in its window. This is how you can delete stubborn files in Windows 11 with ForceDelete.

  1. Open the ForceDelete download page.
  2. Click the Download ForceDelete Now button.
  3. Bring up your browser’s download folder in File Explorer.
  4. Double-click the forcedelete.exe file to bring up the setup window for ForceDelete.
  5. Select Next in the setup wizard.
  6. If you prefer to select an installation directory, click the Browse option. Choose where you want to install ForceDelete, and click the OK button.

  7. Keep pressing Next to reach the installation option.
  8. Press the Install option to initiate the ForceDelete installation.
  9. Now open the ForceDelete software by clicking its desktop shortcut. If you can’t find a shortcut for it, type ForceDelete in Windows 11’s search tool to locate and start the app.
  10. The Delete Files checkbox in ForceDelete’s window should be selected by default. If it’s not selected, however, click that checkbox to select it.

  11. Open whatever folder includes the stubborn file you can’t delete.
  12. Left-click the file you need to delete and hold the mouse button. Then drag the file from File Explorer into the black circle within ForceDelete’s window, and release the mouse button to drop it.
  13. Select Yes when asked to confirm you’re sure about deleting the file.


You’ll notice the ForceDelete window has some additional options. The Close Processes checkbox terminates the background programs that were using the file when selected. You can keep those processes running and delete the file by unchecking that option.

The Permanently Shred Files (Unrecoverable) checkbox is another interesting ForceDelete option. Selecting that setting permanently erases the file. That option means the deleted file won’t be recoverable for even the best data recovery software when enabled.

You can also select to force delete files from Explorer’s context menu. Right-click a stubborn file to erase in File Explorer and select Show more options (for viewing the classic context menu). Select the Force Delete option there to erase the file. Alternatively, you can select an Unlock by ForceDelete option to unlock a locked file in use.

Eradicate Stubborn Files by Force Deleting Them

Whenever you’ve got a seemingly ‘undeletable’ stubborn file in Windows 11, try erasing it with those force deletion methods. At least one of them will probably get rid of the stubborn file once and for all. If you still can’t erase a file with those methods, consider scanning your PC’s primary drive with CHKDSK or a third-party utility.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button