{"id":19477492,"url":"https://github.com/ozbillwang/azure-subscription-cleaner","last_synced_at":"2026-05-05T17:32:34.155Z","repository":{"id":85989933,"uuid":"393375772","full_name":"ozbillwang/azure-subscription-cleaner","owner":"ozbillwang","description":"Simple but powerful script to clean all resources from subscription, include disable subscriptions as well","archived":false,"fork":false,"pushed_at":"2021-08-06T19:49:04.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T12:49:06.045Z","etag":null,"topics":["azure","bash","cleaner","cloud","subscription"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ozbillwang.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":"2021-08-06T12:50:58.000Z","updated_at":"2021-08-06T19:53:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"3149de28-f481-472d-80e9-2ad9a0db973f","html_url":"https://github.com/ozbillwang/azure-subscription-cleaner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ozbillwang/azure-subscription-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozbillwang%2Fazure-subscription-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozbillwang%2Fazure-subscription-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozbillwang%2Fazure-subscription-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozbillwang%2Fazure-subscription-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ozbillwang","download_url":"https://codeload.github.com/ozbillwang/azure-subscription-cleaner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozbillwang%2Fazure-subscription-cleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32660273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["azure","bash","cleaner","cloud","subscription"],"created_at":"2024-11-10T19:45:05.608Z","updated_at":"2026-05-05T17:32:34.122Z","avatar_url":"https://github.com/ozbillwang.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# azure-subscription-cleaner\n\n**Simple but powerful script** with [AZ CLI](https://github.com/Azure/azure-cli) to clean all resources from subscription, include disable subscriptions as well\n\nAt begining, I thought it would be a simple task because Azure manages resource via [Resource Group](https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/manage-resource-groups-portal). But that's not that simple.\n\n### features\n\n- clean all resource groups - with `--no-wait`, you don't wait for the long-running operation to finish.\n- clean all blueprint assignments\n- clean all deleted key vault - Yes, the key are still there when soft delete is enabled, until you purge it. Otherwise, you will face the error, such as , `key with same name is exist`.\n- clean resources from disabled subscription as well, fix the error `the subscription name has more than one match`\n\n### Prerequisite\n\nMake sure you have set the proper subscription\n\n```\n$ az account set -s \u003csub_id or sub_name\u003e\n\n$ az account show\n```\n\n### do the clean\n\nWhen you are ready, just run below command\n\n```\n$ ./sub_cleaner.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozbillwang%2Fazure-subscription-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fozbillwang%2Fazure-subscription-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozbillwang%2Fazure-subscription-cleaner/lists"}