{"id":19437754,"url":"https://github.com/architect/destroy","last_synced_at":"2025-04-24T21:32:06.919Z","repository":{"id":43834360,"uuid":"255740139","full_name":"architect/destroy","owner":"architect","description":"Module for destroying projects created with @Architect","archived":false,"fork":false,"pushed_at":"2024-04-29T21:23:29.000Z","size":143,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-14T12:54:09.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/architect.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":".github/contributing.md","funding":null,"license":null,"code_of_conduct":".github/code_of_conduct.md","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":"2020-04-14T22:18:21.000Z","updated_at":"2024-09-29T23:53:58.000Z","dependencies_parsed_at":"2024-01-06T23:20:29.269Z","dependency_job_id":"9927b284-b389-4200-8407-035dd5f9c45e","html_url":"https://github.com/architect/destroy","commit_stats":{"total_commits":136,"total_committers":5,"mean_commits":27.2,"dds":0.2867647058823529,"last_synced_commit":"2fd94ec64fcc51c224db2601af8566a7193405a1"},"previous_names":[],"tags_count":58,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Fdestroy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Fdestroy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Fdestroy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architect%2Fdestroy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/architect","download_url":"https://codeload.github.com/architect/destroy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250713061,"owners_count":21475126,"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-11-10T15:15:47.221Z","updated_at":"2025-04-24T21:32:06.638Z","avatar_url":"https://github.com/architect.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[\u003cimg src=\"https://assets.arc.codes/architect-logo-500b@2x.png\" width=500\u003e](https://www.npmjs.com/package/@architect/destroy)\n\n## [`@architect/destroy`](https://www.npmjs.com/package/@architect/destroy)\n\n\u003e Architect serverless framework module for destroying projects created with Architect\n\n[![GitHub CI status](https://github.com/architect/destroy/workflows/Node%20CI/badge.svg)](https://github.com/architect/destroy/actions?query=workflow%3A%22Node+CI%22)\n\nArchitect Destroy destroys Architect-generated projects. More specifically, it destroys your projects' CloudFormation Stacks, CloudWatch Log Groups, S3 bucket used during deployment, SSM Parameters added by [`arc env`](https://github.com/architect/env), and if called with `--force` (or the `force` param via API), destroys your DynamoDB (`@tables`) databases and S3 bucket housing your static assets (`@static`).\n\n## API\n\n### `destroy({ appname, stackname, env, force, now, retries }, callback)`\n\nDestroys all infrastructure associated to your Architect app.\n\n- `appname`: the name of the Architect app in question as defined in your `app.arc` file.\n- `stackname`: the custom stack name (if specified during deployment, e.g. `arc deploy --name foo`)\n- `env`: the stage or environment name to destroy, typical values are `staging` or `production`\n- `force` proceeds to destroy your app even if it contains DynamoDB tables and / or an S3 bucket containing `@static` assets.\n- `now`: (boolean) immeditely destroy the app (instead of waiting the requisite 5 seconds)\n- `retries`: while waiting for a CloudFormation Stack to be destroyed, how many\n    times do we ping the CloudFormation API checking if the Stack has been\n    removed? This API is pinged every 10 seconds. If `retries` is exhausted,\n    `callback` will be invoked with an error.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchitect%2Fdestroy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchitect%2Fdestroy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchitect%2Fdestroy/lists"}