All Products
Search
Document Center

Tablestore:Delete a search index

Last Updated:Feb 28, 2026

Call the DeleteSearchIndex operation to delete a search index from a data table.

Warning

This operation is irreversible. Before you delete a search index, confirm that your application no longer depends on it. Save the index schema definition if you need to recreate the index later.

Prerequisites

Notes

A search index cannot be recovered after it is deleted. Proceed with caution.

Parameters

Parameter

Description

TableName

The name of the data table.

IndexName

The name of the search index.

Example

/// <summary>
/// Delete a search index.
/// </summary>
/// <param name="otsClient"></param>
public static void DeleteSearchIndex(OTSClient otsClient)
{
    // Specify the names of the data table and the search index.
    DeleteSearchIndexRequest request = new DeleteSearchIndexRequest(TableName, IndexName);
    // Delete the search index.
    DeleteSearchIndexResponse response = otsClient.DeleteSearchIndex(request);
}

References

If an existing search index does not meet your requirements, you can create a new search index or modify the schema of the search index to add, delete, or modify indexed fields. For more information, see Create a search index and Dynamically modify a schema.