cub variant delete
cub variant delete
Delete a variant and its configuration
Synopsis
Delete a variant: the space that holds it, with every unit and other entity in it.
The variant is named as
A base is not deleted while deployments cloned from it remain: their units still point at its units as their upstream. The error names them. Delete the deployments first, or pass --detach to delete the base anyway and leave the clones without an upstream.
Examples:
# Delete a deployment
cub variant delete web/dev
# Delete the base after its deployments are gone
cub variant delete web/base
# Delete a base whose deployments stay, detaching them from it
cub variant delete --detach web/base
cub variant delete <variant> [flags]
Options
--detach Remove the references other entities have to what is deleted, instead of refusing the delete while any remain
--force delete the variant's units even if some have delete gates
-h, --help help for delete
-o, --output string Output format. One of: json, yaml, name, wide, mutations, jq=<expr>, yq=<expr>, custom-columns=<spec>
--quiet No default output.
--verbose Detailed output, additive with default output
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub variant - Variant commands