> ## Documentation Index
> Fetch the complete documentation index at: https://tfts.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# tfts destroy

> Destroy infrastructure

Destroy all resources managed by a stack.

## Usage

```bash theme={null}
npx tfts destroy [stack] [options]
```

## Description

The `destroy` 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

```bash theme={null}
npx tfts destroy
```

You will be prompted to confirm destruction.

### Specific Stack

```bash theme={null}
npx tfts destroy staging
```

### Auto-Approve

Skip the interactive confirmation:

```bash theme={null}
npx tfts destroy --autoApprove
```

### Target Specific Resources

Destroy only specific resources:

```bash theme={null}
npx tfts destroy --target google_compute_instance.web
```

## 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:

```typescript theme={null}
new ComputeInstance(this, "critical", {
  // ...
  lifecycle: {
    preventDestroy: true,
  },
});
```
