Python

How to delete a file in Python

First check if the file exists before deleting it: Sometimes you may want to delete an entire folder as well: