How to Delete Files in a Folder with Python
Python has a function to help you delete directories and the files in the them, but it’s important to be very careful with this, because it will delete everything recursively without a warning.
import shutil shutil.rmtree("C:\\Temp\\DeleteMe")