Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions cli/basic-usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,28 @@ porter clusters list
porter config set-cluster [CLUSTER_ID]
```

### Delete a Cluster

Delete a cluster from the current project. Porter tears down the infrastructure it provisioned, and the cluster moves to the `deleting` state while teardown runs asynchronously.

```bash
porter clusters delete [CLUSTER]
```

Identify the cluster by its ID, name, or vanity name. Add `-y` or `--yes` to skip the confirmation prompt (required in non-interactive terminals).

```bash
# Delete by name (with interactive confirmation)
porter clusters delete my-cluster

# Delete by ID, skipping the prompt
porter clusters delete 42 --yes
```

<Info>
A cluster can only be deleted once no applications are still running on it. If applications remain, the command exits without deleting and lists the resources you need to remove first. Teardown can take up to an hour.
</Info>

### View Current Configuration

```bash
Expand Down