Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (2024)

Amy Dennis

Jul 17, 2024 • Filed to: Recover Files • Proven solutions

Cannot delete a file in Windows 10

I was deleting some unnecessary junk files and folders on my Windows computer. But somehow, my computer won't let me delete a file. How do I force delete a file on my computer? Thanks!

It is said that the administrator has access to all the operations of the computer. However, there are certain things in which even an administrator faces a problem and hence it can be very frustrating. For example, a file or folder cannot be deleted, like the case. How to delete undeletable files? In this post, we will cover the reasons for and 5 ways of force deleting file and folder in Windows.

  • Solution 1. Close the Folder or File
  • Solution 2. Reboot the Computer
  • Solution 3. Use Command Prompt
  • Solution 4. Use FileASSASIN
  • Solution 5. Replace the Undeletable File

Messages Telling Why You Cannot Delete File

Undeletable files are generally spyware, malware, adware, or Trojan files. They are also normal files that are currently being used by the system and hence prevent them from being deleted. How do you know if the files are undeletable? The following messages are the signs of the undeletable, and also show the reasons.

  1. Cannot delete file: Access is denied.
  2. The file or folder is open in another program or user.
  3. The source or destination of the file may be in use.
  4. There has been a sharing violation.
  5. Make sure the disk is not full or write-protected and that the file is currently not in use.

Once you get these messages, files can’t be deleted by simply pressing the Delete button, no matter how many times you try. That's why you have to force delete the files and folders. How do I force delete a file and folder? 5 Ways are introduced in the following sections.

Solution 1. Close the Folder or File and Try Again

If you get the message showing that "The action can't be completed because a folder or a file in it is open in another program", you can delete the file or folder after following the below steps.

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (2)

To close a file, folder, or an app, there are 2 ways that can help you do that easily.

Step 1 You can directly click the "x" logo on the upper right.

Step 2 Right-click the app in the taskbar and choose "Close window".

Step 3 Finally, try deleting the files or folders once again.

Sometimes, you may be unable to close the files, folders, or apps. The Task Manager can help you do that.

  1. Press "Ctrl + Alt + Delete" simultaneously and choose "Task Manager" to open it.
  2. Find the application where your data is in use. Select it and click "End task".
  3. Try to delete the undeletable information once again.

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (3)

More Related Articles:

  • How to Use Powershell to Force Delete File and Folder
  • 3 Genius Ways to Delete a File in Use in Windows
  • How to Delete Search History in Windows 10

Solution 2. Reboot the Computer

In many cases, restarting the computer is conducive to fixing many computer errors and abnormal performance, including deleting undeletable files and folders. Sometimes, the file is in the unknown progress after you open some certain applications. By rebooting the computer, you can end the tasks, close the apps, and thus remove files successfully.

To restart a computer, go to the Start menu, click the Power button, and choose "Restart".

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (4)

You can also resort to the Settings to do the same.

  1. Go to the "Settings" window by clicking the gear icon in the Start menu.
  2. Go to "Update & Security" > "Recovery" > "Advanced startup" > "Restart now".

After restarting the computer, you can try deleting files or folders or move on to get another solution for removing data in Windows.

Solution 3. Use Command Prompt

This allows you to delete the undeletable files without using any third-party apps. However, you need to have a bit of technical knowledge to use this method.

Step 1 Click on the "Start" button and then type "Command Prompt" or "CMD" in the search box and press the ‘Enter’ key.

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (5)

Step 2 A search result appears. Right-click the "Command Prompt" icon from the search results and click on "Run as administrator" from the list that appears.

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (6)

Step 3 This will launch the administrator level command prompt window which allows you to execute commands without any restriction.

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (7)

The syntax of the command for deleting a file looks like below:

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (8)

Location:

  • DEL: stands for the delete option
  • /F: stands for the force delete option
  • /Q: stands for quite a mode option.
  • /A: stands for various file attributes such as read-only, hidden, ready for archiving, etc.
  • /C: stands for your main drive. In most of the cases, it is the "C:" drive

Step 4 For example you need to delete a file named "virus.exe" present in the desktop. Enter the command as shown and press the "Enter" key to force delete the file from the system.

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (9)

Solution 4. Use FileASSASIN

FileASSASIN is a free program that is used to delete undeletable files from your system. You can download it by searching it from your browser or by clicking on the link: http://fileassassin.en.softonic.com/

Step 1 Once you have downloaded FileASSASIN, open the program by double-clicking on its icon. The main interface of the program looks like as shown below:

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (10)

Step 2 Now click on the browse icon (rectangular shaped icon with three dots adjacent to blank space) to select the files you want to delete.

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (11)

Step 3 Browse for the file you want to delete and then double click on it to select it. Once you have select the file to be deleted, click on the box adjacent to the "Delete file" option to select it. A blue tick indicates that the option has been selected.

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (12)

Step 4 Finally click on the "Execute" option to delete the file. Your file will now be deleted.

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (13)

Solution 5. Replace the Undeletable File

One of the simplest ways of deleting an undeletable file can be done by simply replacing it with another file of the same name and extension. This can be done very easily as shown below. Suppose file named "Softwares" is my undeletable file.

Step 1 Open a new notepad file on your system and simply type anything random in it. Now, click on the "File" option and then click on "Save as".

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (14)

Step 2 Now, select the save location of the notepad as same as where the undeletable files are present. After doing so, choose the file type as "All files" under the "Save as type" option.

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (15)

Step 3 Now, click on the undeletable file once so that the name of the undeletable file will be copied in the "Filename" option. Add the quotation mark at the start and end of the file name as shown below and then click on the ‘Save’ option.

Step 4 Now, a message will pop up asking "Do you want to overwrite and replace the existing file?". Click on "Yes" and the undeletable file will be automatically replaced by the new notepad file. Now, you can delete the notepad file by simply selecting it and pressing the "Delete" button.

Video Tutorial on How to Delete Undeleted Files in USB?

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (16)

Recent Videos from Recoverit

View More >

Free Download | Win Windows Version Free Download | Mac Mac Version

Closing Words

So far, you might have to get rid of undeletable files and folders successfully by means of the above 5 solutions. Before leaving the page, we have a few tips and tricks for you.

1. It is generally advised to have an antivirus program in your system, which is up to date to prevent your system from malware, spyware, and virus which create unnecessary undeletable files.

2. It is generally better to take the advice of an expert before performing unknown system operations.

3. If you lost data on your computer, unfortunately, don't worry! You still have the chance to get lost data back. To recover files from the computer, Recoverit Data Recovery is a nice option for all of you. It is able to recover deleted files in different formats and types.

Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (17)

  • Recover lost or deleted files, photos, audio, music, emails from any storage device effectively, safely, and completely.
  • Supports data recovery from recycle bin, hard drive, memory card, flash drive, digital camera, and camcorders.
  • Supports to recover data for sudden deletion, formatting, hard drive corruption, virus attack, system crash under different situations.

Free DownloadFree Download

Recover & Repair Files

Recover Document Files
  • Recover Lost PPT Files
  • Files Unreadable Errors
  • Recover Unsaved PPT Files on Mac
Repair Document Files
  • Repair Excel File Online
  • Excel File Corrupted?
  • Excel Cannot Open File
  • Rescue Damaged Excel
Recover & Repair More
  • Restore Corrupted Files
  • Recover a Folder
  • 0 Byte Files Solution
  • Undeleted Recycle Bin
  • Recover Folder on Windows
  • Retrieve Lost Files
  • Shift Deleted Files
Clear & Delete File
  • Delete File Completely
Cannot Delete a File or Folder? Delete Undeletable Files in 5 Ways (2024)
Top Articles
Getting a Personal Loan for Uber, Lyft or DoorDash Drivers
NFT creators seek alternatives after OpenSea cuts royalties
3 Tick Granite Osrs
Time in Baltimore, Maryland, United States now
855-392-7812
Pangphip Application
Myexperience Login Northwell
Academic Integrity
Athletic Squad With Poles Crossword
Ogeechee Tech Blackboard
Ave Bradley, Global SVP of design and creative director at Kimpton Hotels & Restaurants | Hospitality Interiors
Whitley County Ky Mugshots Busted
5808 W 110Th St Overland Park Ks 66211 Directions
Oc Craiglsit
Nioh 2: Divine Gear [Hands-on Experience]
Nissan Rogue Tire Size
Mzinchaleft
Tygodnik Polityka - Polityka.pl
2024 INFINITI Q50 Specs, Trims, Dimensions & Prices
Aes Salt Lake City Showdown
Wics News Springfield Il
Vernon Dursley To Harry Potter Nyt Crossword
Обзор Joxi: Что это такое? Отзывы, аналоги, сайт и инструкции | APS
Soul Eater Resonance Wavelength Tier List
HP PARTSURFER - spare part search portal
Valley Craigslist
The Creator Showtimes Near Baxter Avenue Theatres
Ehome America Coupon Code
Craigslist Texas Killeen
Craigslist Maryland Baltimore
Forager How-to Get Archaeology Items - Dino Egg, Anchor, Fossil, Frozen Relic, Frozen Squid, Kapala, Lava Eel, and More!
Nacho Libre Baptized Gif
AsROck Q1900B ITX und Ramverträglichkeit
Louisville Volleyball Team Leaks
Are you ready for some football? Zag Alum Justin Lange Forges Career in NFL
3400 Grams In Pounds
968 woorden beginnen met kruis
Davis Fire Friday live updates: Community meeting set for 7 p.m. with Lombardo
Clima De 10 Días Para 60120
Ezpawn Online Payment
Subdomain Finder
Shipping Container Storage Containers 40'HCs - general for sale - by dealer - craigslist
3 bis 4 Saison-Schlafsack - hier online kaufen bei Outwell
Www Craigslist Com Atlanta Ga
6576771660
2017 Ford F550 Rear Axle Nut Torque Spec
The Sports Academy - 101 Glenwest Drive, Glen Carbon, Illinois 62034 - Guide
8 4 Study Guide And Intervention Trigonometry
Windy Bee Favor
Lesson 5 Homework 4.5 Answer Key
Black Adam Showtimes Near Cinemark Texarkana 14
Island Vibes Cafe Exeter Nh
Latest Posts
Article information

Author: Roderick King

Last Updated:

Views: 6142

Rating: 4 / 5 (51 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Roderick King

Birthday: 1997-10-09

Address: 3782 Madge Knoll, East Dudley, MA 63913

Phone: +2521695290067

Job: Customer Sales Coordinator

Hobby: Gunsmithing, Embroidery, Parkour, Kitesurfing, Rock climbing, Sand art, Beekeeping

Introduction: My name is Roderick King, I am a cute, splendid, excited, perfect, gentle, funny, vivacious person who loves writing and wants to share my knowledge and understanding with you.