35

Deleting File Operation in Python

 3 years ago
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.
neoserver,ios ssh client

Deleting File Operation in PythonSkip to content

FILE-HANDLING-IN-PYTHON.png

Deleting File Operation in Python

September 13, 2020 uzairadamjee 0 Comments

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

Stay up to date

Name
Email*

TechCrunch

Tweets by @TechCrunch

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK