How to delete an invincible 0 byte file?

Try del *. from the command prompt while in the folder the file's in. It will delete all the files in that folder that have no extension.


Actually the del *. doesn't always work. The best answer I have found so far is:

  1. Open an elevated command prompt
  2. Enter del "\\?\C:\Users\userX\0bytefile"

... and voila, the file is deleted. No need to restart or anything else, just need to put \\?\ before the directory when using the del command. Also use the tab button to make sure the name is correct; sometimes a space is added at the end that can be easily missed.

An explanation can be found here: Why does this file apparently not exist when attempting to delete it?

Tags:

Windows 7