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
The environment defaults to dev. To target a different environment:
Destroy a Single App
Pass the app name as the first argument:
With a specific environment:
Options
| Option | Description |
|---|---|
--env | Environment name (e.g. dev, prod). Defaults to dev. |
--variant | Variant name. |
--region | AWS region to target. |