Explain how to delete a file in Python?

Follow the below mentioned steps to delete a file in Python:

Use command os.remove(file_name)

import os

os.remove("ChangedFile.csv")

print("File Removed!")