Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Delete file in Python
elena1234
Feb 10th, 2022
1,171
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
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
Public Pastes
Crypto Method
CSS | 31 sec ago | 0.25 KB
I made $2,000 in 20 minutes
CSS | 54 sec ago | 0.25 KB
✅ API Glitch (Docs Leak)
CSS | 1 min ago | 0.25 KB
can use from puter.com desktop
15 min ago | 0.50 KB
I made $2,000 in 20 minutes
CSS | 60 min ago | 0.25 KB
Crypto Method
CSS | 60 min ago | 0.25 KB
✅ API Glitch (Docs Leak)
CSS | 60 min ago | 0.25 KB
Task Manager config
Lua | 13 hours ago | 1.32 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!