Deleting snapshot consistency groups
Delete a snapshot consistency group while choosing whether to keep or delete its member snapshots.
When you delete a consistency group, you can choose to delete or keep the individual member snapshots. If you update the consistency group to keep the individual snapshots before you delete the group, an activity tracking event is created. However, a backup job is not created because the backup snapshots remain intact.
Deleting a consistency group in the console
- Go to the list of snapshot consistency groups. In the IBM Cloud console, click the Navigation menu
> Infrastructure
> Storage > Block Storage Snapshots.
- On the Consistency groups tab, click the name of a group on the list.
- Click the Actions > Delete.
- Type
Delete. - Click Delete.
Deleting a consistency group from the CLI
You can delete a consistency group from the CLI by running the following command.
ibmcloud is snapshot-consistency-group-delete CONSISTENCY_GROUP_ID
The following example deletes two consistency groups that are identified by their names.
ibmcloud is snapshot-consistency-group-delete snapshot-consistency-group-1 snapshot-consistency-group-2
This will delete snapshot consistency group snapshot-consistency-group-1, snapshot-consistency-group-2 and cannot be undone. Continue [y/N] ?> y
Deleting snapshot consistency group snapshot-consistency-group-1, snapshot-consistency-group-2 under account Test account as user test.user@ibm.com...
OK
Deletion request for snapshot consistency groups snapshot-consistency-group-1, snapshot-consistency-group-2 has been accepted.
For more information about available command options, see ibmcloud is snapshot-consistency-group-delete.
Deleting a consistency group with the API
You can programmatically delete a consistency group by calling the /snapshot_consistency_groups/{id} method in the VPC API as
shown in the following sample request.
curl -X DELETE\
"$vpc_api_endpoint/v1/snapshot_consistency_groups/$consistency_group_id?version=2023-12-05&generation=2"
-H "Authorization: Bearer $iam_token"
Deleting a consistency group with Terraform
Use the terraform destroy command to conveniently delete a remote object such as a snapshot consistency group. The following example deletes my-snapshot-consistency-group.
terraform destroy --target ibm_is_snapshot_consistency_group.my-snapshot-consistency-group
For more information, see terraform destroy.
Activity Tracking events
All multi-volume snapshot operations generate events in IBM Cloud Activity Tracker Event Routing regardless if the consistency group was created manually or by the Backup service. For more information, see Consistency group events.