Problem
When you try to delete a file or folder, you get the following error:
“Could not find this item.
This is no longer located in C:\Example. Verify the item’s location and try again.”
Cause
The file or folder contains invalid characters. This can sometimes happen when downloading files from another operating system.
Solution
- Go to the folder where the file or folder is located.
- Click on a blank space on the address bar. This will select the full path “e.g. C:\Example”.
- Press Ctrl+C to copy the path.
- Press the Windows key + R.
- Type cmd and press Enter.
- If your file is on your Windows drive (usually C:\) then go to the next step. Otherwise, type in the drive letter (e.g. D:\).
- Type
cd "C:\Example"
and press Enter
(Change the text in the quotes to your path name) - Type
dir /x
- This will show all the files and folders with their 8.3 name (also known as DOS name or short name).
For example, BadFile.doc and BadFolder may show up as BADFIL~1.DOC and BADFOL~1 - Delete the file using the following command (using your own filenames):
- For files:
del /f /q BADFIL~1.DOC
- For folders:
rd /q BADFOL~1.DOC
- or alternatively rename it:
ren BADFIL~1.DOC GoodFile.doc
- For files:
Thanks! It worked!
YES!!! After days of torture I have deleted that blasted file. THANK YOU!!
This is the only method that worked. Thanks!
28th November 2019 and still a useful little post.
Once you read it you think “Of course! Obvious!”, but if your head has been away from the old 8.3 world for a while this issue can be a proper little puzzler.
Thank you for helping me remember what I once knew.