We have remove in os to delete a file in Python
delete a file in Python syntax
os.remove(file_name)
import os os.remove("employee.csv") print("employee.csv deleted using command to delete a file in Python")
Tutorialshore
We have remove in os to delete a file in Python
os.remove(file_name)
import os os.remove("employee.csv") print("employee.csv deleted using command to delete a file in Python")