Deleting a Compute Cluster
You can delete a compute cluster if you no longer need it.
Before you delete a compute cluster, first delete all instances in the cluster.
Required IAM Policy
To use Oracle Cloud Infrastructure, you must be granted security access in a policy by an administrator. This access is required whether you're using the Console or the REST API with an SDK, CLI, or other tool. If you get a message that you don't have permission or are unauthorized, verify with your administrator what type of access you have and which compartment to work in.
For administrators: To allow users to do all things with compute clusters in all compartments, write the following policy:
Allow group ComputeClusterUsers to manage compute-clusters in tenancy
You must also allow users to create instances in cluster networks. For a typical policy, see Let users launch compute instances.
Using the Console
-
Open the navigation menu and click Compute. Under Compute, click Compute Clusters.
- Click the compute cluster that you're interested in.
- Click Delete, and then confirm when prompted.
Using the API
Use the DeleteComputeCluster operation.
Using the CLI
Use the compute-cluster delete command.
oci compute compute-cluster delete --compute-cluster-id <compute_cluster_OCID>
For information about using the CLI, see Command Line Interface (CLI).