{"id":31642491,"url":"https://github.com/tameronline/del_github","last_synced_at":"2025-10-24T02:25:47.649Z","repository":{"id":296471751,"uuid":"993490754","full_name":"TamerOnLine/del_github","owner":"TamerOnLine","description":"Delete all repositories in your GitHub account via API – use with caution!","archived":false,"fork":false,"pushed_at":"2025-05-31T00:12:59.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-31T10:11:27.705Z","etag":null,"topics":["automation","cleanup","delete","github-api-v4","python","python3","repositories"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TamerOnLine.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,"zenodo":null}},"created_at":"2025-05-30T22:14:18.000Z","updated_at":"2025-05-31T00:13:03.000Z","dependencies_parsed_at":"2025-05-31T10:11:31.308Z","dependency_job_id":"8124ef8a-e326-4d1c-8bd4-517aa5d07cb8","html_url":"https://github.com/TamerOnLine/del_github","commit_stats":null,"previous_names":["tameronline/del_github"],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/TamerOnLine/del_github","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fdel_github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fdel_github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fdel_github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fdel_github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TamerOnLine","download_url":"https://codeload.github.com/TamerOnLine/del_github/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fdel_github/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278717435,"owners_count":26033542,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["automation","cleanup","delete","github-api-v4","python","python3","repositories"],"created_at":"2025-10-07T03:59:55.990Z","updated_at":"2025-10-07T04:00:00.837Z","avatar_url":"https://github.com/TamerOnLine.png","language":"Python","readme":"# del_github\n\n⚠️ **Warning:** This script will **permanently delete all your GitHub repositories** under the authenticated account. Use with extreme caution and at your own risk.\n\n## Overview\n\n`del_github` is a simple Python utility that uses the GitHub API to delete **all repositories** associated with a user account. It can be useful for cleaning up test accounts, resetting demo environments, or managing temporary repositories.\n\n## Features\n\n- Deletes all repositories owned by the authenticated GitHub user\n- Uses GitHub's official REST API\n- Easy setup with `.env` file\n- Clear console output for success/failure of each deletion\n\n## Requirements\n\n- Python 3.6+\n- GitHub Personal Access Token with `repo` scope (for private repo deletion)\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/tameronline/del_github.git\n   cd del_github\n   ```\n\n2. Install the dependencies:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. Create a `.env` file in the root directory with the following content:\n\n   ```\n   GITHUB_USERNAME=your_github_username\n   GITHUB_TOKEN=your_github_token\n   ```\n\n   \u003e 💡 You can create a personal access token at: [https://github.com/settings/tokens](https://github.com/settings/tokens)\n\n## Usage\n\nRun the script using:\n\n```bash\npython myapp.py\n```\n\nEach repository deletion will be printed to the console with either:\n\n- ✅ `Successfully deleted: repo_name`\n- ❌ `Failed to delete: repo_name – Status code: xxx`\n\n## License\n\nThis project is licensed under the [Apache 2.0 License](LICENSE).\n\n## Disclaimer\n\nThis script performs **irreversible deletions**. Ensure you have backups or that the repositories are no longer needed before running. The author assumes **no responsibility** for accidental data loss.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameronline%2Fdel_github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftameronline%2Fdel_github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameronline%2Fdel_github/lists"}