Tablestore SDK for Java deletes a Wide Column model table and all of its secondary indexes.
Prerequisites
Install the Tablestore SDK for Java and initialize the client.
Note
If the table has search indexes, delete the search indexes before you delete the table.
Function description
public DeleteTableResponse deleteTable(DeleteTableRequest deleteTableRequest) throws TableStoreException, ClientException
Deletes the specified table.
The following example deletes a table named example_table.
Important
Deleting a table also deletes all of its secondary indexes. Deleted tables and secondary indexes cannot be recovered.
DeleteTableRequest request = new DeleteTableRequest("example_table");
client.deleteTable(request);
Parameters
DeleteTableRequest contains the following parameter.
tableName (required)
String: The name of the table.