Delete Files and Directories in Python:

You'll learn to delete files using the os module and pathlib module. Remove files that match a pattern (wildcard). Delete a directory and all files from it