How to Delete Files with Long / Not Valid Filenames in Windows
December 23, 2008 – 8:36 amI’ve experienced quite an annoying Windows problem yesterday. I tried to delete some files inside my Windows XP machine but this error kept popping out - “Cannot delete <filename> - The file name you specified is not valid or too long. Specify a different file name“. As you guess it, you can throw that suggestions into the dustbin cause it did not work. I’ve tried to rename the file, delete the file through command prompt and others but I ‘ve just wasted my precious time. Being curious as always, I Googled for solutions and was thankful that I find a software called Delinvfile.
Delinvfile (hope that in the future the author can think of a better, easier to remember name!) is short for “Delete invalid files and folders” and it really does what it says.

Here is how I solve the above problem with Delinvfile:
1- Install and run Delinvfile.

2- Choose the location of files / folders that you want to delete.

3- I want to delete some stubborn files inside a folder so I’ve chosen the “Delete Folder” tab. In case you just want to delete a file, choose “Delete File” instead.

4- Select the “Delete Folder via Short Name” option and confirm the folder deletion process.

5- File successfully deleted. Enjoice!
That is all that you need to do. Just in case you encounter any problem with file deletion (long, invalid file name etc.) in Windows in the future, this is the tool that you should look up for. Another Windows annoyance fixed, million thanks to Delinvfile!
Tags: freeware, delinvfile, invalid file, file operation, windows xp
You come again! Maybe it is the right time to subscribe to my RSS feed. Thanks for the support!








8 Responses to “How to Delete Files with Long / Not Valid Filenames in Windows”
This problem and other related deletion problems like “cannot delete files because it’s in used” are a real pain to deal with.
thanks for the recommendation. I will keep this tool on my arsenal, just in case I get a problem like this.
By Nelson on Dec 23, 2008
@Nelson: That is easy. You can solve that with Unlocker!
By Syahid A. on Dec 23, 2008
nice info!
but i never come across this problem yet..
By flip9 on Dec 23, 2008
use ubuntu, and this problem will be gone..haha
By aman on Dec 25, 2008
@aman: Aww… Love that one too! But sometimes you have to occasionally use Windows too!
By Syahid A. on Dec 25, 2008
I use unlocker to delete those file/folder. You can get the software here: http://ccollomb.free.fr/unlocker/
Very convenient if you want to delete the file/folder, eg for me, if i want to delete file that used(locked) by IIS, i just right click to delete with unlocker. Otherwise i have to stop IIS to delete the file/folder.
By inertz on Dec 29, 2008
@inertz: The problem is that the files are not locked, it is just undeletable.
But yeah, “Unlocker” is still a cool product.
By Syahid A. on Dec 29, 2008
good thing i will use it if i need…..by the way the name is a bit hard to remember
By Sohail on Feb 3, 2009