0 votes
in Python by
Which command is used to delete files in Python?

1 Answer

0 votes
by
OS.unlink(filename) or OS.remove(filename) are the commands used to delete files in Python Programming.

Example:

1

2

import OS

OS.remove("abc.txt")

Related questions

0 votes
asked Jun 28, 2020 in Python by Robindeniel
0 votes
asked Jan 11, 2021 in Python by SakshiSharma
...