Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some files that contain colon character in the filename (eg. 1d67c0d23e859ed4a259749e4a720d9e:default-sink). When I try to remove them from command line with the command:

c:\backup> del /F *.*

I get "The system cannot find the file specified." for each file. If I specify an individual file:

c:\backup> del /F "1d67c0d23e859ed4a259749e4a720d9e:default-sink"

I get "The filename, directory name, or volume label syntax is incorrect.". If I try to use rd on the parent folder I get

How can I remove these files?

share|improve this question
These files were created on the NTFS partition when I was booted into Linux. Guess I will have to use Linux boot disk as it seems windows doesn't like colon in filenames at the file system driver level. – grom Feb 3 '10 at 6:18

10 Answers 10

This worked for me:

  1. Ran chkdsk /f
  2. Rebooted PC
  3. Then I was able to select and delete the file
share|improve this answer

I guess you can try the 8.3 name?

del /F 1d67c0~1

Note that on NTFS drives you can explicitly disable the 8.3 functionality, so if that's the case you're outta luck for this option. To get the file name dir a dir /x

There used to be a freeware tool called delinvfile but they've gone and changed it to shareware/paid

share|improve this answer
How I could be able to do this on an NTFS volume created with theformatcommand with 8.3 names support disabled? – user2284570 Feb 2 '15 at 14:33
@user2284570 this method won't work. When I wrote that answer, Microsoft had 8.3 names enabled, but these days it is disabled by default. – Mark Henderson Feb 2 '15 at 20:42

There is a Microsoft KB article listing possible ways to delete such files at:

The way I typically use is the native API method:

del "\\?\c:\path\1d67c0d23e859ed4a259749e4a720d9e:default-sink"

According to:

The ":" is a reserved character on NTFS, the native API method I method I mentioned above is the recommended way to delete such files.

share|improve this answer
This doesn't work for the colon, as it is interpreted as a named data stream. – psusi May 3 '13 at 18:06
This worked for my case. the file I was having the issue with contained a comma , – Maher Fattouh Mar 13 at 3:07
Thanks, this worked for me. The file ended in a period. CA848D8F. – Mastro Jul 15 at 1:19

I have Subsystem for UNIX-based Applications installed on my PC (Windows 7). From the Windows shell, I can create a file with touch 1d67c0d23e859ed4a259749e4a720d9e:default-sink, then remove it with rm *:*

share|improve this answer
POSIX compliant utilities (such as SFU) can delete such files. – Ausmith1 Dec 23 '09 at 1:00
@JoeInternet : sigghh Microsoft removed the all non windows subsystems with 2012 and up. – user2284570 Feb 2 '15 at 14:16

Have you tried quoting the filenames? Giving the exact command that you're running would be handy.

share|improve this answer
I have added it to the exact command I'm running to question. – grom Dec 22 '09 at 2:57

Have you tried using a wildcard? For instance 'del 1d67c0d23e859ed4a259749e4a720d9e*.*' might work.

share|improve this answer
You I tried wildcards. No luck – grom Dec 22 '09 at 2:55
The next thing that I think of is to boot the system with a linux cd (like system rescue cd), mount the volume there and try the delete from there. You might get interesting results at that point, as who knows what's really going on in the filesystem. – Michael Kohne Dec 22 '09 at 18:32
@MichaelKohne : I think using a Unix path implementation is the right solution too. But why using linux? windows is run as an NT subsystem, and there is already a POSIX/Unix NT subsystem. – user2284570 Feb 3 '15 at 13:02
@user2284570 - because given the fact that they were created with Linux, it seems likely that the linux NTFS driver allowed something that it shouldn't have, which even the Windows POSIX shell may not be able to slip past the filesystem driver. Much simpler to boot a live linux CD, remove the bogus file, and reboot back to Windows. – Michael Kohne Feb 3 '15 at 13:26
@MichaelKohne : No, because UNC paths already work (native subsystem), and the with the POSIX subsystems there is no direct access to alternate data streams, so you can use:inside files. – user2284570 Feb 3 '15 at 13:40

Try renaming the parent folder to a single character (a, 1, etc.) and then try to delete the parent folder. If it doesn't work then move to the first child folder and rename it to a single character and try the delete again. I often use this method for files with invalid characters (don't ask me how they get created because I don't know) or for files where the path exceeds the maximum (again, don't ask how this occurs).

share|improve this answer

Have you tried dir /X to find out the actual 8.3 name, and then tried deleting that name?

Or, could that file have an alternate data stream? You might want to look at it wil the tool at to see what that can tell you (I've never used that tool, it just came up when I searched).

share|improve this answer

7zip can delete files that Windows fails to; I've used it in the past when dealing with overlong filenames, but I've never tried it on files with colons in. They would normally be used to denote ADS.

share|improve this answer
This is because 7-zip use cygwin. – user2284570 Feb 2 '15 at 14:40

Close all the files, if any opened, that are saved in the drive which is containing such files. Now, Open the drive properties.

"My Computer" -> "Right Click on the this drive" > properties

Then, go to "Tools" tab and click "Check now" under 'Error checking' label.

enter image description hereClick here for larger image

This will unmount your drive and will scan the complete drive for errors, eventually it will delete such files with illegal names. On finishing it will show a messages saying some files were fixed.

I successfully deleted such files from my external hard disk.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.