Deletes a search index.
Usage notes
A search index cannot be recovered after it is deleted. Exercise caution when you call this operation.
Request syntax
message DeleteSearchIndexRequest {
optional string table_name = 1;
optional string index_name = 2;
}
Parameter | Type | Required | Description |
table_name | string | No | The name of the data table. |
index_name | string | No | The name of the search index. |
Response syntax
message DeleteSearchIndexResponse {
}
Check whether an HTTP status code 200 is returned to determine whether the call is successful.
If an HTTP status code 200 is returned, the call is successful.
If an HTTP status code 400 or 500 is returned, the call failed.
An error message is returned for a failed call. For more information, see Error.
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