Skip to main content

kusion destroy

Delete the specified resources in runtime

Synopsis

Delete resources by resource spec.

Only KCL files are accepted. Only one type of arguments may be specified: filenames, resources and names, or resources and label selector.

Note that the destroy command does NOT do resource version checks, so if someone submits an update to a resource right when you submit a destroy, their update will be lost along with the rest of the resource.

kusion destroy [flags]

Examples

  # Delete the configuration of current stack
kusion destroy

Options

  -D, --argument stringToString   Specify the top-level argument (default [])
-C, --backend-config strings backend-config config state storage backend
--backend-type string backend-type specify state storage backend
-d, --detail Automatically show plan details after previewing it
-h, --help help for destroy
--operator string Specify the operator
-O, --overrides strings Specify the configuration override path and value
-Y, --setting strings Specify the command line setting files
-w, --workdir string Specify the work directory
-y, --yes Automatically approve and perform the update after previewing it

SEE ALSO

  • kusion - Kusion is the platform engineering engine of KusionStack
Auto generated by spf13/cobra on 28-Sep-2023