Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- try:
- os.remove("my_new_file")
- print("Deleted!")
- except FileNotFoundError:
- print("File already deleted!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement