Tech

How to force delete a file or folder on Windows 7/10/8.1

Windows prevent certain files from being deleted or moved. This can be really frustrating when you want to remove a file that you don’t need but are unable to do so. If you’re in this predicament, try the methods below.

  1. Close associated process
  2. Force delete files/folders using command prompt
  3. Delete files/folder in Safe Mode

Method 1: Close associated process

If the file you’re trying to delete is in use by a program or process, you’ll not be able to delete it. Usually, you’ll get a message saying the file is locked. If that’s the case for you, follow the instructions below:

  1. Right-click the Taskbar and select Task Manager.
  2. Right-click the process or program that you know is using the file, then select End Task/Process.
  3. Try deleting the file again.

If you still can’t remove the file, then check the next method below.

Method 2: Force delete files/folders using Command Prompt

Another way to force delete files or folders on your computer is by using Command Prompt. Follow the instructions below:

Using the DEL command will delete your file permanently, and you can’t recover the file later.
  1. Right-click the file you want to delete, then select Properties and check the file’s location.
  2. On your keyboard, press the Windows logo key and R at the same time.
  3. Type cmd, then press Ctrl, Shift and Enter keys on your keyboard to run Command Prompt as administrator.
  4. Enter del and location of the file you want to force delete (e.g. del c:\users\pc\desktop).
  5. Press the Enter key on your keyboard to execute the command.

If this didn’t work for you, then move on and try the next method, below.

Method 3: Delete files/folders in safe mode

If you can’t delete the file in normal mode, then try doing this in Safe Mode.

  1. Boot your PC into safe mode.
    If you’re on Windows 7, check this to see how to boot your Windows 7 computer into safe mode. If you’re on Windows 10 or 8, please check this to see how to enter safe mode on Windows 8 or 10 devices.
  2. Delete the file/folder once you boot your computer into safe mode.
  3. To exit Safe Mode, simply restart your computer.

Hopefully, this post helped. If you have any questions or suggestions, please feel free to leave a comment below.

Super Easy uses cookies to provide you with better services.
By continue using the website or clicking Close, you agree to our privacy policy and how we use cookies.