Links on Super Easy may earn us a commission. Our Editorial Guideline.

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

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.

By Ellie Zhuang

Ellie has been writing about technology since 2019. Her early passion for adventure novels, games, and videos fueled a deep curiosity for solving real-world puzzles.

Writing gives her a chance to nourish this curiosity, allowing her to delve deep into the vast depths of the internet, emerging with treasure troves of information and then sharing her findings with people who need the information to solve their everyday challenges.

Her innate problem-solving nature keeps her on a perpetual quest for tech solutions, online shopping tips, and life hacks that sprinkle a bit of magic into our daily routines. At Super Easy, she has been crafting how-tos, guides, and product roundups, making both our professional and personal lives a whole lot simpler.

Apart from writing, she's also a talent scout, on a mission to unearth hidden gems of creativity by recruiting new writers for the team. On top of that, she takes on the role of managing communications with our valued partners.

When she's not weaving words, you'll find her enjoying sitcom marathons, exploring virtual reality adventures on her Quest 2, and unleashing her culinary creativity in the kitchen. It's all part of her quest to make life more enjoyable, both on and offline.

0 0 votes
Article Rating
guest
0 Comments
Inline Feedbacks
View all comments
Failed to load the Search bar. Please refresh the page and try again.
Click here to reload
0
Would love your thoughts, please comment.x
()
x