LinuxCommandLibrary

pulumi-destroy

Delete all resources in a Pulumi stack

TLDR

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

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.

CAVEATS

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

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard