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

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

Parameters

Parameter Description
tableName The name of the data 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);
}