Styrow.dev
Question 29 of 45
Python Topic: General medium

Explain how to delete a file in Python?

Question

Explain how to delete a file in Python?

Answer

By using a command os.remove (filename) or os.unlink(filename)