Delete a search index
If you no longer require a search index that is created for a data table, you can delete the search index.
Usage notes
A deleted search index cannot be recovered. Proceed with caution.
You cannot delete a search index for which a canary index is created.
ImportantA canary index is a mechanism for dynamically modifying the schema of a search index. For more information, see Dynamically modify the schema of a search index. A canary index allows you to add, update, or remove index columns from a search index and modify the routing key and sorting method for a search index without business interruption. You do not need to delete the existing search index and create a new search index.
Procedure
-
Go to the Indexes tab.
Log on to the Tablestore console.
In the top navigation bar, select a resource group and a region.
-
On the Overview page, click the name of the instance or click Manage Instance in the Actions column.
-
On the Instance Details page, click the Tables tab. Then, find the target data table and click Indexes in the Actions column.
-
On the Indexes tab, find the search index to delete and click Delete in the Actions column.
-
In the Delete Search Index dialog box, verify the names of the search index and its data table, then click OK.
NoteIf security verification is enabled for your account, follow the prompts to complete the process.
Development integration
API operation
You can call the DeleteSearchIndex operation to delete a search index.
Integration methods
You can use Tablestore SDKs or the Tablestore CLI to delete a search index.
Use Tablestore SDKs
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