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:
- Tablestore SDK for Java: Delete search indexes
- Tablestore SDK for Go: Delete search indexes
- Tablestore SDK for Python: Delete search indexes
- Tablestore SDK for Node.js: Delete search indexes
- Tablestore SDK for .NET: Delete search indexes
- Tablestore SDK for PHP: Delete search indexes
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.
}