CLI
Webiny Destroy
Destroy cloud infrastructure previously deployed for a Webiny app.
WHAT YOU'LL LEARN
- How to destroy cloud infrastructure for a single app
- How to fully destroy your whole Webiny project
Overview
The destroy command removes all cloud infrastructure resources previously deployed by webiny deploy for a given app and environment. It delegates to Pulumi internally.
This operation is irreversible. All AWS resources managed by the specified Pulumi stack will be permanently deleted.
Destroy the Whole Project
yarn webiny destroyThe environment defaults to dev. To target a different environment:
yarn webiny destroy --env prodDestroy a Single App
Pass the app name as the first argument:
yarn webiny destroy api
yarn webiny destroy admin
yarn webiny destroy coreWith a specific environment:
yarn webiny destroy api --env prodOptions
| Option | Description |
|---|---|
--env | Environment name (e.g. dev, prod). Defaults to dev. |
--variant | Variant name. |
--region | AWS region to target. |