Possible Duplicate:
File I can't take ownership of

I want to delete a directory, but I cannot,e g.

  1. Because I am not the owner ("Ownership").
  2. Files are used by a process.
  3. Folder is shared.
  4. File names are corrupted, e.g. contain illegal characters.
  5. Other reasons I cannot recall...

Is there a way to force the deletion - I perfectly accept that I am responsible for my action and I need to know what I am doing. I could resolve the root cause - but sometimes this sucks and is time consuming.

Is there any way simply to force the action?

marked as duplicate by random Jul 22 '11 at 19:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Try this: Unlocker.

The software allows you to see which process(es) are locking current files and folders and allows you to 'unlock' them, allowing you to delete them afterwards. It has some other pretty neat features too, but I only use it for unlocking files.

  • This takes care of most cases, unless he encounters problem #1 in which he would have to take ownership of the directory. Great little tool though. – John T Jul 22 '11 at 17:47

Not the answer you're looking for? Browse other questions tagged or ask your own question.