The clusterctl delete
command deletes the provider components from the management cluster.
The operation is designed to prevent accidental deletion of user created objects. For example:
clusterctl delete --infrastructure aws
This command deletes the AWS infrastructure provider components, while preserving the namespace where the provider components are hosted and the provider's CRDs.
If you want to delete the namespace where the provider components are hosted, you can use the --include-namespace
flag.
Be aware that this operation deletes all the object existing in a namespace, not only the provider's components.
If you want to delete the provider's CRDs, and all the components related to CRDs like e.g. the ValidatingWebhookConfiguration etc.,
you can use the --include-crd
flag.
Be aware that this operation deletes all the objects of Kind's defined in the provider's CRDs, e.g. when deleting
the aws provider, it deletes all the AWSCluster
, AWSMachine
etc.
If you want to delete all the providers in a single operation, you can use the --all
flag.
clusterctl delete --all