Deleting disks

To save costs, you can delete volumes attached to instances in an instance group using CLI commands.

In cases where only compute services are being run on an instance group, any block storage attached to the instance is going to cost the customer even if the cluster is stopped. As compute services do not store any persistent data on attached volumes, having additional volumes to store temporary data is unnecessary. In such cases, customers can use this command to delete all attached volumes on instances in an instance group.

This can be done only for compute instance groups on only Data Hubs, as Data Lakes need persistent volumes. This command deletes all additional volumes for instances in an instance group.

Deleting disks using CDP CLI

Use the following CDP CLI Beta command to delete all attached additional volumes to the instances in a host group. Replace the placeholders with actual values. For example, [***DATALAKE-NAME***] should be replaced with an actual name. As part of this update, the instance-template parameter in the vertical scaling command has been made optional. But one of the -- instance-template or -- disk-options have to be provided.

The delete disks request is sent as part of the --disk-options parameter. All parameters for the add disk input are required.

The deleteDisks parameter accepts a boolean value, either true or false.

//DATAHUB

cdp datahub start-cluster-vertical-scaling --datahub=[***DATAHUB_NAME***] --group=[***DATAHUB_INSTANCE_GROUP_NAME***] --disk-options deleteDisks=true|false