Home » Blog » Data Wipe » How to Force Delete Files on PC Using 6 Easy Methods
Data Wipe

How to Force Delete Files on PC Using 6 Easy Methods

  author
Published By Mohit Jha
Nimisha Ramesh
Approved By Nimisha Ramesh
Published On July 31st, 2026
Reading Time 7 Minutes Reading

Have you ever noticed how many times you try to delete a file and it won’t simply delete? Such a situation is quite common and can be faced when your file is still open, being used by another program, set to ready only or maybe it is protected by Windows permissions. So, if you are thinking about how to force delete files on PC, then you can follow simple ways to delete those stubborn files. Just make sure that the files you want to remove are not important or something you may not need later cause force deleting a file can be erased permanently and you may not find it in the Recycle Bin. Additionally, read this blog for more ways to protect sensitive information and keep your data secure.

Method 1: Restart Windows Explorer to Unlock the File

It is quite common that a user cannot delete their file because it is used by an app. So, the easiest way is to simply close the program that might have the file open. If still it doesn’t work, then from the Task Manager, restart Windows Explorer. This won’t take much of your time and often clears the file lock. Hence, once Windows Explorer restarts, you can then go back and try to delete the files again.

  1. Press  Ctrl + Shift + Esc to open Task Manager.
  2. Now, under the Processes tab, choose the app that could be locking the file.
  3. After that, click on End task to stop the process.
  4. Then search for Windows Explorer and select Restart from the menu.
  5. After restarting, choose the file and press Shift+ Delete

This method will be the best option to go with so that it releases the file lock and you can delete it safely.

Method 2: How to Force Delete Files on PC Using Command Prompt

If you are someone who is looking for a quick and effective option to force delete a file in Windows 10 using CMD, then go with the built-in del command. This will help the user to remove files that normally won’t delete. Here, they can use the /f switch to delete read-only files and add /q if you want to skip the confirmation message. Also keep in mind that if you delete files this way it will be removed permanently and won’t go in the Recycle Bin.

  1. Type Command Prompt in Windows Search.
  2. Then, select Run as administrator.
  3. Enter the following command:

del /f /q “C:\Users\Name\Desktop\sample.txt”

After that, you can simply replace the example path with the actual location of your file. If you find that the path contains spaces, then keep it inside quotation marks. So, to force-delete a folder with all its contents inside, use the following command:

rmdir /s /q “C:\Users\Name\Desktop\Old Folder”

Use wildcards cautiously because an incorrect path may delete multiple files. Microsoft will recommend to verify the matching files before performing broad command-line deletion.

Method 3: Use PowerShell with the Force Parameter

If you are looking for another way to understand how to force delete files on PC, then another way is to use PowerShell. So with the help of the Remove-Item command, one can easily delete files or even entire folders, whereas the Force option will help to delete files that are hidden or read-only.

First as an administrator, open PowerShell or Windows Terminal

Remove-Item -LiteralPath “C:\Path\stubborn-file.txt” -Force

If the folder contains a file or subfolders, then run the following command.

Remove-Item -LiteralPath “C:\Path\Old Folder” -Recurse -Force

If by any chance the path includes brackets or similar characters, then use -LiteralPath so that PowerShell can read them as normal text.

Method 4: Take Ownership and Change Permissions

Another way to look for how to force delete files on PC is to take ownership of the file is another method to investigate when Windows says you don’t have permission. This can happen when the files have been created by another user account or are protected by the system. So once you take ownership and give your account full control, then you should be able to delete the files without any hassle. Here, users should also not change the permissions for important Windows system files, as this can affect how your PC works.

  1. First, find the file, right-click it, and then select Properties
  2. Under the Security tab, choose Advanced and select Change beside Owner.
  3. Now enter the username and verify it by clicking on Check Names and select OK.
  4. Return to Security, click Edit, select your account, and allow Full control.
  5. Apply the changes and delete the file.

Here, the icacls will help you to view, display, or even modify access-control lists on Windows 10 and Windows 11. Try to avoid changing permissions on C:\Windows, System32, or unfamiliar application folders.

Method 5: Delete Stubborn Files in Safe Mode

A person might think that it is worth trying Safe Mode when they are trying to understand how to force delete files on PC then the answer is yes. Since Safe Mode opens Windows with basic services, this makes it easier to delete the file that you no longer want to use. So once your computer is in Safe Mode, a user can try to delete the stubborn files without any errors.

  1. Go to the settings and click on System to open Recovery.
  2. Now find Advanced startup and choose Restart now.
  3. Click Troubleshoot, choose Advanced options, then select Startup Settings and click Restart.
  4. Now, to start Safe Mode, press 4.
  5. You can now restart normally once the files have been located and deleted.

Method 6: Permanently Remove Undeletable or Sensitive Files

Sometimes when built-in methods don’t give you the best results or if you want to erase the files permanently, then a user can go with FreeViewer File Shredder Software. Here, the tool will work best if you want to delete the files permanently without getting recovered. Given below are the simple steps to follow:

Download Now Purchase Now

Steps:

  1. Download, install, and open the data wipe tool on your PC.
  2. Now, click Add Files or Add Folder and import the items you wish to delete.
  3. Make sure that you review the files before deleting them.
  4. Once reviewed, select the shredding method based on your needs.
  5. Begin the wiping process by clicking on Shred or Delete Permanently.
  6. Once completed, see if the files have been permanently removed.

Important Precautions: How to Force Delete Files on PC Safely

Before you try how to force delete files on PC, it is important for a user to check if they are deleting the right files or not. Sometimes a user can make a mistake by accidentally removing permanent data or the wrong file. That is why it becomes necessary not to make such mistakes and be aware of them.

  • Make sure to take a moment before you delete your files that are no longer in use.
  • Always create a backup just in case you’re unsure about deleting the files or the file has important information.
  • Users should avoid interrupting or stopping the wiping tool midway.
  • Since force-deleted or shredded files cannot be recovered, users should proceed with it when they are completely sure about it.
  • You should always close the apps that might be using the file before forcing its deletion.

End Note

In short, if you know how to force delete files on PC, it can save your time even when the stubborn files refuse to delete because they are locked, protected, or simply being used by some other app. Here, the user can start with the basic method to delete their files and then move to other methods. However, if none of the manual methods work, then the user can simply go with a wiping tool to solve their problem. Here, users should be sure that they don’t delete any of their important files, as they cannot be recovered later. Also, users should avoid not to make any mistakes, as this can lead to losing important files.

Why Choose FREEVIEWER?

3M+

Happy Clients

250+

Products

100+

Countries

15+

Years of Experience