WHAT YOU'LL LEARN
  • How to destroy cloud infrastructure for a single app
  • How to fully destroy your whole Webiny project

Overview
anchor

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
anchor

yarn webiny destroy

The environment defaults to dev. To target a different environment:

yarn webiny destroy --env prod

Destroy a Single App
anchor

Pass the app name as the first argument:

yarn webiny destroy api
yarn webiny destroy admin
yarn webiny destroy core

With a specific environment:

yarn webiny destroy api --env prod

Options
anchor

OptionDescription
--envEnvironment name (e.g. dev, prod). Defaults to dev.
--variantVariant name.
--regionAWS region to target.