Deleting File Operation in Python
source link: http://uzairadamjee.com/blog/deleting-file/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Deleting File Operation in PythonSkip to content
Deleting File Operation in Python
To delete a file, you must import the OS module, and using os.remove() function we can perform deletion.
import os
os.remove(“abc.txt”)
Thank you for reading. I hope that you enjoyed the article
Leave a Reply Cancel reply
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Post navigation
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK