Skip to main content
Destroy all resources managed by a stack.

Usage

Description

The destroy command synthesizes your configuration and runs terraform destroy to remove all infrastructure resources managed by the stack.

Options

Examples

Basic Usage

You will be prompted to confirm destruction.

Specific Stack

Auto-Approve

Skip the interactive confirmation:

Target Specific Resources

Destroy only specific resources:

Safety

By default, destroy requires interactive confirmation. Use --autoApprove only in automated environments where you’re certain about the destruction. To protect critical resources from accidental deletion, use lifecycle rules: