Project Brief
Your task for this project is to write a Python script, which when executed, deletes all files and directories contained in your computer’s Downloads folder. Optionally, you can schedule the script to be executed at a certain time every day or when the computer starts. That would keep your Downloads folder uncluttered.
Environment Setup Instructions
You don’t need to install any library for this project.
Run the app with python main.py or schedule it to be executed automatically on your computer.
Resources
Learn how to delete a file using Python:
https://pythonhow.com/how/delete-a-file/
Learn how to delete a directory using Python:
https://pythonhow.com/how/delete-a-directory/
Learn how to use schedule a Python script on Mac and Windows:
https://pythonhow.com/how/schedule-a-python-script-for-execution-at-a-specific-time-every-day/
Project Solution
View, run, and play around with the code using the button below, even from your mobile phone.
Feel free to post your questions or comments in the comment section below.
Happy Coding!
Daily Python Projects Team