You can call the DeleteTable operation to delete a specified table from the current instance.

Note For more information about the DeleteTable operation, see DeleteTable.

Prerequisites

  • OTSClient is initialized. For more information, see Initialization.
  • A table is created.
  • The index tables and search indexes for the table are deleted.

Parameters

Parameter Description
tableName The name of the table.

Examples

The following code provides an example on how to delete a specified table:

private static void deleteTable(SyncClient client) {
    DeleteTableRequest request = new DeleteTableRequest(TABLE_NAME);
    client.deleteTable(request);
}