How to delete a residual Ubuntu directory from Windows?

Posted by memo1288 on Super User See other posts from Super User or by memo1288
Published on 2013-10-28T20:40:34Z Indexed on 2013/10/28 21:57 UTC
Read the original article Hit count: 178

Filed under:
|

I'm using Windows 7. After installing (and uninstalling) Ubuntu on my laptop, I found that it left a folder called ".Trash-1000" on my H drive. I cannot remove it: if I try to delete it from Explorer, it says:

The file name you specified is not valid or too long. Specify a different file name.

If I try to remove it from the command line, this is what happens:

H:\>rmdir .Trash-1000 /S /Q
.Trash-1000\files\Screenshot from 2013-09-24 11:57:32.png - The filename, direct
ory name, or volume label syntax is incorrect.
.Trash-1000\files\Screenshot from 2013-09-24 12:03:45.2.png - The filename, dire
ctory name, or volume label syntax is incorrect.
.Trash-1000\info\Screenshot from 2013-09-24 11:57:32.png.trashinfo - The filenam
e, directory name, or volume label syntax is incorrect.
.Trash-1000\info\Screenshot from 2013-09-24 12:03:45.2.png.trashinfo - The filen
ame, directory name, or volume label syntax is incorrect.

The files mentioned there are the contents of that folder. Using quotes around the folder name yields the same result. Trying to delete any of the sub-folders results in the same error, and trying to remove any of the files inside results in "No such file or directory".

As I said before, I no longer have Ubuntu installed. How can I remove this folder?

© Super User or respective owner

Related posts about windows-7

Related posts about folder