ct delete
Delete all resources that belong to a release, based on inventory created during ct apply.
ct delete my-release --namespace productionct delete <name> [flags]| Argument | Required | Description |
|---|---|---|
name | yes | Release name to delete. |
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--namespace | -n | string | — | Namespace where release inventory is stored |
--context | — | string | (current) | Kubeconfig context to use |
Examples
Section titled “Examples”Delete a release from production namespace:
ct delete my-release --namespace productionDelete using a specific kube context:
ct delete my-release --namespace staging --context stagingHow it works
Section titled “How it works”ct delete <name> │ ├─ Create Kubernetes client (uses --context if provided) ├─ Load release inventory ConfigMap: ct-inventory-<name> ├─ Delete all resources from inventory │ └─ NotFound resources are skipped └─ Delete inventory ConfigMapct delete does not require source directory or repository URL. It removes resources by reading the last saved inventory for the release.
See also
Section titled “See also”ct apply— apply and update release inventoryct template— render manifests without cluster changes