Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to delete some files from a folder. I've taken ownership of the files and the folder. When I delete these files Windows doesn't report any errors and deletes them. BUT, after I press F5 these files reappear again. There are no messages whatsoever, they are just undeletable.

I know login off will help, but how do I fix it without going through the pain of closing everything down?

P.S. Files disappear from the folder after aprox. 5 minutes.

Update. Turns out my version of Windows did not properly upgrade from test version, so it had some weird disk drive issues.

share|improve this question
    
What files? What folder? More details please. –  Dan McGrath Feb 7 '10 at 6:48
    
Steam at the moment, but I've seen this behavior with other programs. –  HeavyWave Feb 7 '10 at 6:56
    
MAAAGGGICCC! :D –  Alastair Pitts Feb 7 '10 at 7:22
    
> Update. Turns out my version of Windows did not properly upgrade from test version, so it had some weird disk drive issues. Please, can you elaborate? I'm having the exact same problem and I don't know what to do. My Windows 7 Enterprise x64 was in test version before, but I don't know if the problem is happening since then. If you can tell me what you have done, I would be very thankfully. –  user80203 May 7 '11 at 16:12
add comment

2 Answers

up vote 6 down vote accepted

They only appear not to have been deleted, because some other process is still using the file and hasn't finished with it yet.

Take a look at this page at Microsoft's support site:

You cannot delete a file or a folder on an NTFS file system volume

Cause 2: The file is being used

You may not be able to delete a file if the file is being used. To resolve this issue, determine the process that has the open handle, and then close that process.

Depending on how the file is opened (for example, it is open for exclusive access instead of shared access), you may not be able to delete a file that is in use. You can use a variety of tools to help you determine the processes that have open handles to files whenever you want.

[...]

The symptoms of this issue may vary. You may be able to use the Delete command to delete a file, but the file is not actually deleted until the process that has the file open releases the file.

Steam runs continuously in the background, so any files it is using won't be released (and thus properly deleted) until Steam stops running, which is normally only when you log off.

You can use Process Explorer or the handle command (both available from the SysInternals site) to determine which process is still using the file you're trying to delete.

But I don't think it's really a problem - it only looks like a problem. Consider it a display issue.

share|improve this answer
    
+1 You can use Unlocker (dwld from Filehippo) to see who is accessing the file & unlock the file or kill the process. However Windows should give an error saying the file is in use. (Sometimes just the empty folder is left behind incase its in use) –  Ganesh R. Feb 7 '10 at 8:27
    
Thanks. The handle command shows that the handle is opened by a non-existent process. shoots himself –  HeavyWave Feb 28 '10 at 9:26
add comment

I've had exactly the same problem when I turned on indexing (files reappear and then vanish again after 1 minute).

Disabling indexing helped (Control Panel » Indexing Options).

share|improve this answer
add comment

Your Answer

 
discard

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.