0 votes
in Python by
Can you please Explain how to delete a file in Python?

2 Answers

0 votes
by
By using a command os.remove (filename) or os.unlink(filename)
0 votes
by

Files can be deleted in Python by using the command os.remove (filename) or os.unlink(filename)

Related questions

+1 vote
asked Feb 14, 2021 in Python by SakshiSharma
0 votes
asked Oct 11, 2021 in Python by rajeshsharma
...