Created
July 17, 2018 16:39
-
-
Save h3nryza/8128828462e7817f7818d2faf862a5ba to your computer and use it in GitHub Desktop.
Python Windows Permanently remove files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
filepath = r("c:\temp") | |
os.remove(filePath) # This just removes to recyclebin | |
os.unlink(filePath) # This removes without recyclebin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment