How do I remove a folder from my desktop that wont delete?


Top List

When you attempt to delete a file or folder on your Windows computer, the Item not found error may appear. Here is the full error message:

Could not find this item. This is no longer located in [folder path]. Verify the item's location and try again.

could not find the item when deleting a file or folder

This article explains how to fix the error when deleting a file or folder in Windows.

Methods

  1. Delete the file or folder from Command Prompt
  2. Delete the file or folder from Command Prompt Using SFN
  3. Rename the file or folder
  4. Dealing with File/Folder Names ending with DOT or Space
  5. Advanced Methods

Fix Could Not Find This Item When Deleting

First, make sure you refresh the screen by pressing the F5 key. This is to check if the file or folder really exists, or if it has been already deleted by some program and only the ghost icon appears. If the file or folder appears even after refreshing the screen, then try one of these methods to delete the file or folder.

Method 1: Delete the file or folder from Command Prompt

  1. Press and hold the Shift key and right click on the file or folder
  2. Select Copy as Path in the context menu.
  3. Open a Command Prompt window (cmd.exe)
  4. Type the following command to delete the item:
    If its a file:del [drive:\path\filename]

    could not find the item when deleting a file or folder

    If its a folder:

    rd /s /q [folderpath]

    could not find the item when deleting a file or folder

    (In the above example, the Office Docs folder along with all the sub-folders and files will be deleted.)

    tips bulb iconIts always better to include the complete path to the file or folder when deleting. Note that you can paste the file/folder path from the clipboard (which you copied in Step 2 above) to the Command Prompt by pressing Ctrl + V.

Method 2: Delete the file or folder from Command Prompt Using Short File Name format

Use the 8.3 (short file name) file/folder name to delete the item from Command Prompt. Follow these steps:

  1. In the Command Prompt window, change to the parent directory of the file or folder.
  2. Type DIR /X to find the short file/folder name (8.1 name). For example, the short file name for a file named togglethumbs.vbs may be something like toggle~1.vbs.
  3. Then delete the file or folder using its short file name from the Command Prompt.

Method 3: Rename the file or folder

Once you find the short file/folder name, you may try renaming it. To rename a file or folder, use this command-line syntax:

  1. Open a Command Prompt window.
  2. Then, use the following command-line syntax to rename the item:REN drive:\path\OldName Newname

    For example:

    REN drive:\path\toggle~1.vbs toggle.vbs
  3. Exit the Command Prompt.
  4. See if you can delete the file via File Explorer.

Method 4: Dealing with File/Folder Names ending with DOT or Space

When the file or folder name contains reserved characters or the names end with a dot (.), or space, deleting the file or folder may cause the above-said error.

If you find (using DIR /X command) that the file or folder name has a trailing space or a dot (.) at the end, use the following syntax (\\?\) to delete the item:

In the Command Prompt window, type:

To delete a folder:

rd /s "\\?\D:\bad\folder\path "

(Note the trailing space)

rd /s "\\?\D:\bad\folder\path."

(Note the trailing dot)

Examples:

rd /s "\\?\D:\Shared\folder1 "rd /s "\\?\D:\Shared\folder1."

To delete a file:

del "\\?\c:\path_to_file_that contains a trailing space.txt "

(Note the trailing space)

del "\\?\c:\path_to_file_that contains a trailing dot."

(Note the trailing dot)

(Example) Deleting folders with reserved names or having invalid characters in the name.

In this example, there are three invalid folders namely Con, Conduct. and LocalState..

delete folder reserved or invalid characters in name

(Note that the word con is a reserved name, and shouldnt be used in file or folder names.)

Attempting to normally access the folder with a reserved name (e.g., con) causes the following error:

Location is not available

path:\con is not accessible.

The handle is invalid.

the handle is invalid - invalid file or folder name

To delete the folder, well now run the following command from administrator Command Prompt:

rd /s "\\?\C:\con"

The other two folders namely conduct. and LocalState.. have invalid characters (.) in the file name. Lets run the following commands to delete those folders:

rd /s "\\?\C:\conduct." rd /s "\\?\C:\LocalState.."

delete folder reserved or invalid characters in name

Voila! The three folders are now removed.

delete folder reserved or invalid characters in name

For more information on dealing with files containing reserved or invalid characters, see Microsoft article You cannot delete a file or a folder on an NTFS file system volume.

Advanced Methods

tools icon

If none of the above options help, check out the article How to Delete a Stubborn Undeletable File or Folder in Windows? to learn about other methods to delete the stubborn, corrupted, or undeletable file or folder. Here are some of the options discussed in that article:

  • MoveFile.exe method
  • Process Explorer method
  • Using Unlocker
  • Disk error checking
  • Dealing with incorrect NTFS Permissions
  • Dealing with invalid or reserved characters in file/folder name

Hope one of the methods discussed in the article helped you successfully delete a file or folder without getting the Could not find this item error message.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support, my reader. It won't take more than 10 seconds of your time. The share buttons are right below. :)
Tweet
Share4
Share
4 Shares