From b8290a45cec5bcff21d63be0b80babfab2e4be0b Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 20:49:17 +0000 Subject: [PATCH] docs: document porter clusters delete command --- cli/basic-usage.mdx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/cli/basic-usage.mdx b/cli/basic-usage.mdx index d7bcded0..8c5ada7e 100644 --- a/cli/basic-usage.mdx +++ b/cli/basic-usage.mdx @@ -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 +``` + + +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. + + ### View Current Configuration ```bash