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")
...