{"id":18297712,"url":"https://github.com/similato87/google-drive-batch-delete","last_synced_at":"2026-02-02T20:01:47.255Z","repository":{"id":251521323,"uuid":"837661131","full_name":"similato87/google-drive-batch-delete","owner":"similato87","description":"Use your browser to batch delete files from Google Drive folders that match a specific pattern, all online.","archived":false,"fork":false,"pushed_at":"2024-08-03T16:28:16.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T23:11:16.040Z","etag":null,"topics":["browser-based","instructions-for-use","no-coding"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/similato87.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-03T16:26:06.000Z","updated_at":"2024-10-04T06:38:55.000Z","dependencies_parsed_at":"2024-08-03T17:43:29.840Z","dependency_job_id":"bd0de8e4-4d7c-42a9-84f0-ac21184b9af4","html_url":"https://github.com/similato87/google-drive-batch-delete","commit_stats":null,"previous_names":["similato87/google-drive-batch-delete"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/similato87%2Fgoogle-drive-batch-delete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/similato87%2Fgoogle-drive-batch-delete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/similato87%2Fgoogle-drive-batch-delete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/similato87%2Fgoogle-drive-batch-delete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/similato87","download_url":"https://codeload.github.com/similato87/google-drive-batch-delete/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246249218,"owners_count":20747168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser-based","instructions-for-use","no-coding"],"created_at":"2024-11-05T15:03:57.321Z","updated_at":"2026-02-02T20:01:47.190Z","avatar_url":"https://github.com/similato87.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Drive Batch Delete\n\nThis repository contains a script to batch delete all files and folders from a Google Drive folder that match a specific pattern using Google Colab and PyDrive2. This allows you to manage your Google Drive files directly in your browser.\n\n## Features\n\n- **No Coding Skills Required**: You don't need to know any programming or coding to use this script.\n- **Browser-Based Solution**: All steps are performed online in your web browser using Google Colab.\n- **Simple and Easy Setup**: Follow the step-by-step instructions to quickly set up and run the script.\n- **Automated Process**: The script automates the deletion process, saving you time and effort.\n- **User-Friendly Instructions**: Detailed, user-friendly instructions make it easy for anyone to follow.\n\n## Prerequisites\n\n- A Google account with access to Google Drive.\n\n## Setup Instructions\n\n### Step 1: Obtain Folder ID\n\n1. **Root Folder ID**:\n   - Open the folder in Google Drive.\n   - The URL will look something like this: `https://drive.google.com/drive/folders/ROOT_FOLDER_ID`.\n   - Copy the `ROOT_FOLDER_ID` from the URL.\n\n### Step 2: Check Permissions\n\n- Ensure you have write access to the folder and its subfolders.\n\n### Step 3: Run the Script\n\n1. Open [Google Colab](https://colab.research.google.com/) and create a new notebook.\n2. Copy the contents of `batch_delete_drive_files.py` into a cell in the notebook.\n3. Replace `ROOT_FOLDER_ID` and `pattern` with the ID obtained in Step 1 and the pattern you want to match.\n4. **Grant Permissions**: When prompted, a pop-up window will ask for permissions to access your Google Drive. Make sure to tick all the necessary boxes to grant permissions.\n5. Run the cell to execute the script.\n\n## Time Estimates\n\n- **Obtain Folder ID**: 2-5 minutes\n- **Check Permissions**: 2-5 minutes\n- **Run the Script**: 10-30 minutes (depending on the size of the folder and internet speed)\n\n## Script\n\nThe script is located in the file `batch_delete_drive_files.py`.\n\n### Usage\n\n1. **Copy**: Copy the script into a new cell in a Google Colab notebook.\n2. **Edit**: Replace the placeholder folder ID and pattern with your actual folder ID and the pattern you want to match.\n3. **Execute**: Run the cell to start deleting files and folders.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Related Projects\n\n- [Google Drive Folder Copy](https://github.com/similato87/google-drive-folder-copy): Use your browser to copy files from others' shared Google Drive folders to your own Google Drive, all online in the browser.\n\n## Key Topics\n\n- no coding required\n- browser-based solution\n- easy setup\n- quick execution\n- automated process\n- secure\n- user-friendly instructions\n- error handling\n- time-efficient\n- online\n- Google Drive\n- Google Colab\n- PyDrive2\n- file deletion\n- recursive deletion\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimilato87%2Fgoogle-drive-batch-delete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimilato87%2Fgoogle-drive-batch-delete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimilato87%2Fgoogle-drive-batch-delete/lists"}