Destroy all resources managed by a stack.Documentation Index
Fetch the complete documentation index at: https://tfts.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Description
Thedestroy command synthesizes your configuration and runs terraform destroy to remove all infrastructure resources managed by the stack.
Options
| Option | Type | Description | Default |
|---|---|---|---|
--app | string | Command to run the tfts app | From cdktf.json |
--output | string | Output directory | cdktf.out |
--skipSynth | boolean | Skip synthesis step | false |
--autoApprove | boolean | Skip interactive approval | false |
--target | string | Target specific resources (repeatable) | - |
Examples
Basic Usage
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: