pulumi-destroy

Delete all resources in a Pulumi stack

TLDR

Destroy all resources
$ pulumi destroy
Destroy with auto-approval
$ pulumi destroy --yes
Destroy specific stack
$ pulumi destroy -s [stack]
Preview destruction
$ pulumi destroy --preview-only
Destroy specific targets
$ pulumi destroy --target [urn]

SYNOPSIS

pulumi destroy [options]

DESCRIPTION

pulumi destroy deletes all resources in a stack. Removes cloud infrastructure managed by Pulumi. Always preview changes before destruction in production environments.

PARAMETERS

-s, --stack name

Target stack.
-y, --yes
Skip confirmation.
--preview-only
Preview without executing.
--target urn
Destroy specific resources.
-p, --parallel n
Parallelism level.
--refresh
Refresh state before destroy.

INSTALL

sudo pacman -S pulumi
sudo apk add pulumi
brew install pulumi
nix profile install nixpkgs#pulumi

CAVEATS

This permanently destroys cloud resources. Use --preview-only first in production.

SEE ALSO

pulumi(1), pulumi-up(1), pulumi-preview(1)