Skip to main content

How to delete a file that won't delete in Windows 10



Method 1: Restart PC

The first thing you can try to do when faced with the described problem is to simply restart your computer. If the problem was caused by some minor glitch, or one of the running programs blocked the deletion, after restarting the system, the file will be deleted on the first try.

Method 2: Removing in "Safe Mode"

If the file continues to be held by a non-critical system or third-party process, booting the PC in Safe Mode will help get rid of such a file .

  1. Open the quick command window with the Win + R key combination , type in it msconfigand click "OK" .
  2. In the System Configuration utility window that opens , switch to the Boot tab , check the Safe Mode option and confirm with the OK button .
  3. Confirm restarting your computer.

After Windows 10 boots into safe mode, try deleting the problematic file in the usual way. To boot in normal mode, run the System Configuration utility again and on the General tab, enable the Normal startup option , then save the settings and reboot.

Method 3: Using an archiver

This solution can be effective if you need to delete a file or folder with a long path or dots/spaces at the end of the file name. Any popular archiver will do, the same WinRAR or 7-Zip . Let's consider deleting a file on the example of working with WinRAR.

Download WinRAR

  1. Right-click on the file that cannot be deleted and select "Add to archive" from the context menu .
  2. Give the created archive a short name, in the archiving options enable the option "Delete files after archiving" and click the "OK" button .

Since most archivers ignore Windows long path restrictions, the file should be deleted without problems. Then delete the archive itself.

Method 4: Using "Command Prompt"

To delete files with long paths or incorrect names, you can use the classic "Command line" .

  1. Launch the console from Windows 10 search so you can find it the fastest. It is necessary to call the "Command line" on behalf of the administrator.
  2. Form and execute a command in the console like del \\?\C:\fullpath.txt, where C is the drive letter, and fullpath is the full path to the file to be deleted, including its name (example in the screenshot). If there are dots or problems at the end of the filename, be sure to include them as they are also part of the path.

Method 5: Change permissions

Lack of user access rights to an object is one of the most common causes of a file deletion error. You can eliminate it by obtaining full rights to the file, and then try to erase the object again.

Option 1: Windows Tools

  1. Open the "Properties" of the problematic file.
  2. Switch in the properties window that opens to the "Security" tab and click the "Advanced" button .
  3. Click "Disable Inheritance" in the "Advanced Security Options" window .
  4. Select the Convert inherited permissions to explicit permissions on this object option .
  5. Make sure you are the owner of the file as a user or administrator. Otherwise, click the Edit link to proceed to change ownership.
  6. Enter your local username or your Microsoft account name in the user or group selection box that opens and click OK .
  7. Save your settings.
  8. Click the Change button in the previous Properties window .
  9. If the desired user or group is not listed, click the Add button in the group permissions window and add the user or administrator (yourself) as shown in Step 6.
  10. Select the group in which you are a member ( "Administrators" or "Users" ) and set full access rights for it. Save your changes.

Option 2: TakeOwnershipEx Utility

An easier way to get permissions on a file or directory is to use the third-party utility TakeOwnershipEx. This small free solution allows the current user to get rights to an object with one click.

Download TakeOwnershipEx from the official website

  1. Download the archive with the utility from the developer's official page and unzip it.
  2. Run the TakeOwnershipEx-1.2.0.1.exe executable file and install the utility.
  3. Right-click on the problematic file and select the option "Get access / Restore rights" from the context menu .
  4. If successful, the utility will return the message "Get full access to the file / folder" .

Method 6: Using unlock utilities

To remove the so-called non-removable files in Windows 10, you can use specialized unlocker applications. Their use is effective in cases where a file or other object is held by some system or third-party process, and they also allow you to delete files and folders with long or incorrect names. You can view the list of these tools, as well as see examples of their use, at this link.

Method 7: Using LiveCD Linux

This is the most reliable and effective, but at the same time the most difficult way to get rid of a file or any other object that cannot be deleted. Its essence is to obtain exclusive access to the computer's file system by loading it from a Linux-based LiveCD. Any LiveCD with a file manager on board will do, so, in this example, the Puppy Linux distribution is used.


  1. Download the boot image and burn it to a flash drive using Rufus or a similar program.
  2. Boot the computer from the LiveCD.
  3. Select the partition on your Linux desktop that contains the file you want to delete. If you don't know which section it is, check them all one by one.
  4. Right-click on the file to be deleted and select the "Delete" option from the context menu .
  5. Confirm the deletion by clicking the "Yes" button.

The procedure for deleting files in other LiveCDs may be slightly different, but the essence is about the same.

Comments

Popular posts from this blog

BDCOM OLT All Commands ( BDCOM )

 

BDCOM How to reboot ONU

  When connecting, let’s switch to elevated privilege mode:        Enable       epon reboot onu interface ePON 0/2:1           Are you sure to reboot the ONU(y/n) To answer the question below, press the y key  Watch full videos in YouTube Visit Also BDCOM How to reboot ONU -  New! BDCOM. How to reboot ONU How to view information about ONU on BDCOM OLT Setting up BDCOM P3310 EPON

Configuring Cisco Nexus N3K-C3064PQ-10GX Cisco Nexus 3000)

  The switch has 48 SFP+ 10 Gb/s and 4 QSFP+ 40 Gb/s ports When connecting for the first time through the console, specify the password for the admin user: Do you want to enforce secure password standard (yes/no): yes    Enter the password for "admin":    Confirm the password for "admin":       Would you like to enter the basic configuration dialog (yes/no): no Switch to configuration mode and specify the firmware file: configure terminal show incompatibility nxos bootflash:nxos.7.0.3.I4.6.bin boot nxos bootflash:/nxos.7.0.3.I4.6.bin exit Save the configuration and reboot the switch: copy running-config startup-config   reload This command will reboot the system. (y/n)?  [n] y Next, we look at the current and saved configuration: show running-config show startup-config During switching on the switch, if necessary, you can switch to bootloader mode: Press  ctrl L to go to loader prompt in 2 secs From the bootloader, ...