0 votes
in Python by
How a file is deleted in Python?

1 Answer

0 votes
by
The file can be deleted by either of these commands:

os.remove(filename)

os.unlink(filename)

Related questions

0 votes
asked May 24, 2020 in Python by SakshiSharma
0 votes
asked Feb 11, 2021 in Python by SakshiSharma
...