{"id":15873583,"url":"https://github.com/tombuildsstuff/azurerm-dalek","last_synced_at":"2025-03-16T04:30:45.672Z","repository":{"id":45589225,"uuid":"161362602","full_name":"tombuildsstuff/azurerm-dalek","owner":"tombuildsstuff","description":"Works through an Azure subscription and removes all matching resources","archived":false,"fork":false,"pushed_at":"2024-05-22T09:30:03.000Z","size":5004,"stargazers_count":5,"open_issues_count":5,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-27T05:02:17.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/tombuildsstuff.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":"2018-12-11T16:29:26.000Z","updated_at":"2024-05-22T09:29:40.000Z","dependencies_parsed_at":"2023-10-12T17:16:41.798Z","dependency_job_id":"e8fc3dfc-b29e-4910-8882-f7f5736ee20b","html_url":"https://github.com/tombuildsstuff/azurerm-dalek","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tombuildsstuff%2Fazurerm-dalek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tombuildsstuff%2Fazurerm-dalek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tombuildsstuff%2Fazurerm-dalek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tombuildsstuff%2Fazurerm-dalek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tombuildsstuff","download_url":"https://codeload.github.com/tombuildsstuff/azurerm-dalek/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243802941,"owners_count":20350316,"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":[],"created_at":"2024-10-06T01:04:29.536Z","updated_at":"2025-03-16T04:30:40.653Z","avatar_url":"https://github.com/tombuildsstuff.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Dalek\n\nAzure Dalek will work through your Azure Subscription and delete everything it comes across (matching a filter).\n\n~\u003e **NOTE / BE AWARE:** This will delete resources in your Azure Subscription which do not include the tag `DoNotDelete` - please read the source to understand before running.\n\nThe Dalek supports using both a Service Principal and your Azure CLI credentials. The following Environment Variables can be configure:\n\n* `ARM_CLIENT_ID` - (Optional) The Client ID associated with the Service Principal used for authentication\n* `ARM_CLIENT_SECRET` - (Optional) The Client Secret associated with the Service Principal used for authentication\n* `ARM_ENVIRONMENT` - (Optional) The Azure Environment which the tests should be run against, e.g. `public`, `german`, `azurestackcloud`. Defaults to `public`.\n* `ARM_SUBSCRIPTION_ID` - The ID of the Azure Subscription within the Tenant\n* `ARM_TENANT_ID` - The ID of the Azure Tenant\n* `ARM_ENDPOINT` - (Optional) The URI of a Custom Resource Manager Endpoint, intended for use with Azure Stack.\n* `YES_I_REALLY_WANT_TO_DELETE_THINGS` - (Optional) Set this to `true` to actually delete resources\n\nIt's also possible to use the following command line flags:\n\n* `prefix` - (Optional) An optional prefix for Resource Group names. \n\n## Dependencies\n\n* Go 1.19\n\n## Example Usage\n\nTo delete using your Azure CLI Credentials against Azure Public:\n\n```sh\n$ go build .\n$ YES_I_REALLY_WANT_TO_DELETE_THINGS=\"true\" ./azurerm-dalek\n```\n\nTo delete with a Service Principal against Azure Public:\n\n```sh\n$ export ARM_CLIENT_ID=\"00000000-0000-0000-0000-000000000000\"\n$ export ARM_CLIENT_SECRET=\"00000000-0000-0000-0000-000000000000\"\n$ export ARM_ENVIRONMENT=\"public\"\n$ export ARM_SUBSCRIPTION_ID=\"00000000-0000-0000-0000-000000000000\"\n$ export ARM_TENANT_ID=\"00000000-0000-0000-0000-000000000000\"\n$ go build .\n$ YES_I_REALLY_WANT_TO_DELETE_THINGS=\"true\" ./azurerm-dalek\n```\n\nTo delete using your Azure CLI Credentials against Azure Stack:\n\n```sh\n$ go build .\n$ YES_I_REALLY_WANT_TO_DELETE_THINGS=\"true\" ./azurerm-dalek\n```\n\nTo delete with a Service Principal against Azure Stack:\n\n```sh\n$ export ARM_CLIENT_ID=\"00000000-0000-0000-0000-000000000000\"\n$ export ARM_CLIENT_SECRET=\"00000000-0000-0000-0000-000000000000\"\n$ export ARM_ENVIRONMENT=\"public\"\n$ export ARM_ENDPOINT=\"https://management.westus.mydomain.com\n$ export ARM_SUBSCRIPTION_ID=\"00000000-0000-0000-0000-000000000000\"\n$ export ARM_TENANT_ID=\"00000000-0000-0000-0000-000000000000\"\n$ go build .\n$ YES_I_REALLY_WANT_TO_DELETE_THINGS=\"true\" ./azurerm-dalek\n```\n\n## Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftombuildsstuff%2Fazurerm-dalek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftombuildsstuff%2Fazurerm-dalek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftombuildsstuff%2Fazurerm-dalek/lists"}