shutil.rmtree will not delete read-only files on Windows. Is there a python equivalent of \"rm -rf\" ? Why oh why is this such a pain?
shutil.rmtree
Here is a variant of what Steve posted, it uses the same basic mechanism, and this one is tested :-)
What user do python scripts run as in windows?