This topic describes how to delete a search index created for a table.

Operations

You can call the DeleteSearchIndex operation to delete a search index.

Use Tablestore SDKs

You can use the following Tablestore SDKs to delete a search index:

Parameters

Parameter Description
tableName The name of the table.
indexName The name of the search index.

Examples

private static void deleteSearchIndex(SyncClient client) {
    DeleteSearchIndexRequest request = new DeleteSearchIndexRequest();
    request.setTableName(TABLE_NAME); // Set the name of the table.
    request.setIndexName(INDEX_NAME); // Set the name of the search index.
    client.deleteSearchIndex(request); // Call client to delete the search Index.
}