Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

clusterctl delete

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.

Caution

Be aware that --include-namespace will delete 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.

Caution

Be aware that --include-crd will delete 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