snippetbashTip
pulumi destroy — Destroy all existing resources in a stack. More information: <https://www.pulumi.com/docs/iac/cli/co
Viewed 0 times
resourcescommandalldestroystackpulumi destroycliexisting
Problem
How to use the
pulumi destroy command: Destroy all existing resources in a stack. More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_destroy/>.Solution
pulumi destroy — Destroy all existing resources in a stack. More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_destroy/>.Destroy all resources in the current stack:
pulumi destroyDestroy all resources in a specific stack:
pulumi destroy {{[-s|--stack]}} {{stack}}Automatically approve and destroy resources after previewing:
pulumi destroy {{[-y|--yes]}}Exclude protected resources from being destroyed:
pulumi destroy --exclude-protectedRemove the stack and its configuration file after all resources in the stack are deleted:
pulumi destroy --removeContinue destroying the resources, even if an error is encountered:
pulumi destroy --continue-on-errorCode Snippets
Destroy all resources in the current stack
pulumi destroyDestroy all resources in a specific stack
pulumi destroy {{[-s|--stack]}} {{stack}}Automatically approve and destroy resources after previewing
pulumi destroy {{[-y|--yes]}}Exclude protected resources from being destroyed
pulumi destroy --exclude-protectedRemove the stack and its configuration file after all resources in the stack are deleted
pulumi destroy --removeContext
tldr-pages: common/pulumi destroy
Revisions (0)
No revisions yet.