This project provides a script that allows you to easily delete Google Drive files of a particular date and type in bulk with just one run.
I created this script after accidentally uploading millions of dataset photos to my Google Drive while working on a Google Colab project. Google One support was not helpful, and I couldn't find any other way to delete files in bulk without paying. This script helped me efficiently delete those files without the need for manual deletion.
- Delete Google Drive files based on a specific date and file type.
- Bulk deletion with just one run of the script.
- Clone this repository to your local machine.
- Create a virtual environment and activate it.
- Install the required dependencies from the
requirements.txtfile. - Create a Google Cloud account and enable the Google Drive API.
- Generate the credentials to be used in the script.
- Configure the script with your Google Drive credentials.
- Specify the date and file type for deletion.
- Run the script and watch as it deletes the specified files.
⚠️ Warning: Please note that this script is provided as-is and should be used with caution. Make sure to double-check the files you are deleting before running the script.