1. Help Center
  2. Python Programming

Explain how to delete a file in Python?

Use command os.remove(file_name)
 
import os

os.remove("ChangedFile.csv")

print("File Removed!")