Deleting "undeletable" files in Vista
You'll want to first take ownership of the files, which is easiest when you add Take Ownership to the right-click menu.
Once you've done that, you can do one of the following:
- Use Unlocker to remove whatever is locking the file, and then delete it.
- Use Boot Deleter to delete it when you reboot.
- Try and rename the file, sometimes you can rename them when you can't delete them. Once you reboot, you can delete it.
- Try and delete it from safe mode.
- Delete it from the command prompt, usually safe mode works the best.
I had a similar problem deleting a seemingly empty folder.
These are the steps I had taken:
- Use Cedrick Collomb's Unlocker to remove any locks
- Use Unlocker to delay delete on reboot
- Turn off windows search service to prevent indexing of folder
- Deleted user rights of "unkown user" (rights from previous OS)
- Took ownership of folder
- Rename folder to delete
- Delete from command line with admin rights
- Delete in Safe Mode
None of these solutions worked for me.
My solution:
It then occurred to me that the file system might have become corrupted. I therefore ran check and repair of the file system by running
chkdsk /ffrom the command prompt. After a reboot I was finally able to delete the folder.