delete-cluster
Description
Delete a VKS cluster and all of its associated node groups. Before executing, the command fetches and displays a preview showing the cluster name, status, version, node count, and the list of node groups that will be removed.
Unless --force is provided, you are prompted to confirm. Use --dry-run to see the preview without being prompted and without deleting anything.
This action is irreversible.
Synopsis
Options
--cluster-id (string)
ID of the cluster to delete.
- Required: Yes
--dry-run (boolean)
Display the resources that would be deleted without sending the delete request.
- Required: No
- Default:
false
--force (boolean)
Skip the interactive confirmation prompt and delete immediately. Useful in non-interactive scripts.
- Required: No
- Default:
false
Global options
This command also accepts the global options (--profile, --region, --output, --query, --endpoint-url, --debug, …).
Examples
Delete a cluster interactively (prompts for confirmation):
Preview what will be deleted without deleting:
Delete without confirmation (for use in scripts):