in Python by
Q:
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")
Click here to read more about Python
Click here to read more about Insurance

Related questions

0 votes
asked Jan 15 in Cassandra by SakshiSharma
0 votes
asked Jan 30, 2020 in Selenium by Deepanshu Burreja
0 votes
asked Dec 19, 2019 in Python by sharadyadav1986
0 votes
asked Oct 30, 2019 in DBMS by rajeshsharma
0 votes
asked Dec 14, 2019 in Python by sheetalkhandelwal
...