Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

Why can I not delete "Python25" folder from my C disk? I have already uninstalled Python from the control panel, but I still can't get rid of this folder. Some message pops up (it's in Chinese so I don't quite understand, but I think it says something like I need to close some application and try again, but all applications are closed.)

It is Python 2.5.4. I am using "Windows XP"

Has anyone here had a similar problem?

share|improve this question

migrated from Sep 8 '10 at 13:17

This question came from our site for professional and enthusiast programmers.

up vote 5 down vote accepted

Some process is still running with an open handle to the folder. (Just because you have no open application windows, it doesn't mean you have no running processes.)

Just reboot the system and try again.

If you really can't or don't want to reboot, use tools such as Process Explorer to detect what process is "using" the folder.

share|improve this answer
Thank You, Yes, I rebooted it and was able to deleted it then! – brilliant Sep 8 '10 at 14:58

This can also happen when you have a command prompt window open, and you are sitting in that directory.

share|improve this answer

The Application Unlocker (Windows) allows you to right-click in a file/folder and see which processes are using that file. Once you know, it allows you to unlock said files and folders without needing to restart your computer.

I find it more straightforward that Process Explorer

share|improve this answer
...and I find rebooting more straightforward than Unlocker :) – badp Sep 8 '10 at 13:42

If rebooting doesn't help, you could try SysInternals MoveFile to schedule it's deletion on the next reboot.

But in this case something is using the files and doing this might cause issues.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .