public void deleteColumnFamily() {
    System.out.println("\nDelete column family: " + COLUMN_FAMILY_2);
    // [START bigtable_delete_family]
    // Deletes a column family.
    try {
      ModifyColumnFamiliesRequest deleted =
          ModifyColumnFamiliesRequest.of(tableId).dropFamily(COLUMN_FAMILY_2);
      adminClient.modifyFamilies(deleted);
      System.out.printf("Column family %s deleted successfully%n", COLUMN_FAMILY_2);
    } catch (NotFoundException e) {
      System.err.println("Failed to delete a non-existent column family: " + e.getMessage());
    }
    // [END bigtable_delete_family]
  }
public void deleteColumnFamily ( ) { System . out . println ( "\nDelete column family: " + COLUMN_FAMILY_2 ) ; try { ModifyColumnFamiliesRequest deleted = ModifyColumnFamiliesRequest . of ( tableId ) . dropFamily ( COLUMN_FAMILY_2 ) ; adminClient . modifyFamilies ( deleted ) ; System . out . printf ( "Column family %s deleted successfully%n" , COLUMN_FAMILY_2 ) ; } catch ( NotFoundException e ) { System . err . println ( "Failed to delete a non-existent column family: " + e . getMessage ( ) ) ; } }
Demonstrates how to delete a column family.