How to Force Delete Stubborn Files in Windows 11 – MUO – MakeUseOf
Give stubborn files the boot with these tips for 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.
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.
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:
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:
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:
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:
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.
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.
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.
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.
Jack has been a freelance tech journalist for more than a decade. He has covered Windows Vista, 7, 10, and 11 topics within a multitude of guides for Make Use Of and numerous other websites.
Join our newsletter for tech tips, reviews, free ebooks, and exclusive deals!
