# `npx @sanity/cli blueprints destroy`

Permanently destroy a remote Stack and its provisioned resources. The local Blueprint manifest and resource files remain, and a matching local Stack ID is cleared from `.sanity/blueprint.config.json`.

## Required safety checks

1. Obtain explicit authorization to destroy the Stack.
2. Resolve the exact project or organization scope and Stack ID.
3. Run `npx @sanity/cli blueprints info --json` for that target.
4. Present the resolved target and affected resources before continuing.

Do not infer authorization from a request to clean up files, redeploy, or fix configuration.

## Run

Interactive use prompts for confirmation:

```sh
npx @sanity/cli blueprints destroy
```

For an authorized non-interactive destruction, provide the complete target:

```sh
npx @sanity/cli blueprints destroy --project-id PROJECT_ID --stack NAME_OR_ID --force --json
```

Use `--organization-id` instead of `--project-id` for an organization-scoped Stack. The explicit scope flags require both `--stack` and `--force`.

Use `--no-wait` only when asynchronous destruction is intended: it exits `0` as soon as the request is accepted. While waiting, exit code `75` means the request was accepted but completion could not be confirmed. Check `blueprints info` before retrying.
