Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 a empty folder by the name dev that was somehow created on my Windows7 laptop.It contains a file by the name nul.It has size 0 Bytes and both the folder and the file are hidden and read-only.I would like to know if there is some way by which I can delete the folder and the file.

share|improve this question
How do you know that it has a file called nul? What did you do to determine this? My educated guess is that if there truly is such a file, it's actually named null. Moreover, what deletion methods have you actually tried? – JdeBP Jan 20 '12 at 12:34
@JdeBP It is very likely that it is actually called nul seeing as how he can't delete it. nul is a reserved word in the Windows filesystem and can't normally have files by this name. Trying doing mkdir nul and watch what happens. – SpellingD Oct 23 '12 at 16:51
up vote 1 down vote accepted

You can use a freeware called as unlocker to delete undeletable files.

Download Unlocker for Windows here.

share|improve this answer

For deleting (and making!) files/folders with Windows reserved names (con,nul, and a few others), you can use cmd.exe and use a UNC longpath like this:

del \\?\C:\Full\Path\To\nul 
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.