You might want to use mozfile.remove, which apparently works better under Windows. See http://hg.mozilla.org/mozilla-central/file/default/testing/mozbase/mozfile/mozfile/mozfile.py#l133 if this doesn't cause issues on Windows though, let's leave it for now.