ocne cluster delete

Destroys a cluster that has been deployed using ocne cluster start. This command only applies to clusters that have been created using local virtualization. It can't be used to destroy clusters deployed to bare metal systems, compute resources, or deployed using infrastructure automation APIs.

ocne cluster delete 
[{-C|--cluster-name} name]
[{-c|--config} URI] 
[{-P|--provider} provider]
[{-s|--session} URI]

Where:

{-C|--cluster-name} name

The name of the cluster to delete. The default is ocne.

{-c|--config} URI

The path to a configuration file that contains the definition of the cluster to delete.

{-P|--provider} provider

The provider to use when interacting with the cluster. Options are:

  • libvirt (the default)

  • oci

  • byo

  • none

{-s|--session} URI

The session URI for the libvirt provider.

Example 4-39 Delete the default libvirt cluster

To delete the default libvirt cluster:

ocne cluster delete

Example 4-40 Delete a cluster using the cluster name

To delete a cluster named mycluster:

ocne cluster delete --cluster-name mycluster

Example 4-41 Delete an ephemeral cluster

To delete an ephemeral cluster named ocne-ephemeral:

ocne cluster delete --cluster-name ocne-ephemeral

Example 4-42 Delete a cluster using a configuration file

To delete a cluster created using a configuration file:

ocne cluster delete --config myconfig.yaml