# Script to go through a given directory recusively and remove files based on file extension import os """ Directory path should be formatted as follows: ':/path/to/file Windows example: C:/Users/test/testUser/Downloads MacOS example: /Volume/folderName """ directoryToUse = for subdir, dirs, files in os.walk(directoryToUse): for file in files: if file.endswith("