public void deleteCluster ( ) { System . out . printf ( "%nDeleting cluster: %s from instance: %s%n" , CLUSTER , instanceId ) ; // [START bigtable_delete_cluster] try { adminClient . deleteCluster ( instanceId , CLUSTER ) ; System . out . printf ( "Cluster: %s deleted successfully%n" , CLUSTER ) ; } catch ( NotFoundException e ) { System . err . println ( "Failed to delete a non-existent cluster: " + e . getMessage ( ) ) ; } // [END bigtable_delete_cluster] }
Demonstrates how to delete a cluster from an instance .