This script allows you to specify file formats to delete and will delete all files with those formats in your downloads folder.
- Replace
<Username>
in the script with your actual username. - Modify the
formats_to_delete
list to include the file formats you want to delete. You can add as many file formats as you'd like to this list. - Run the script.
This script requires the following libraries:
- os
- glob
Please be careful while using this script and make sure you understand what file formats you are deleting, and that you have backed up any important files before running the script.