1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:42:09 +02:00
tldr/pages/common/pulumi-destroy.md
Nelson Figueroa b9cd141a16
pulumi-*: update documentation links (#15589)
pulumi-*: update documentation link
2025-01-23 14:23:53 -08:00

703 B

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 destroy

  • Destroy all resources in a specific stack:

pulumi destroy --stack {{stack}}

  • Automatically approve and destroy resources after previewing:

pulumi destroy --yes

  • Exclude protected resources from being destroyed:

pulumi destroy --exclude-protected

  • Remove the stack and its configuration file after all resources in the stack are deleted:

pulumi destroy --remove

  • Continue destroying the resources, even if an error is encountered:

pulumi destroy --continue-on-error