You can call the DeleteSearchIndex operation to delete a search index created for a table.
Prerequisites
- A Tablestore client is initialized. For more information, see Initialization.
- A data table is created. Data is written to the table.
- A search index is created for the data table. For more information, see Create search indexes.
Parameters
Parameter | Description |
---|---|
tableName | The name of the table. |
indexName | The name of the search index. |
Examples
client.deleteSearchIndex({
tableName: TABLE_NAME, // Set the table name.
indexName: INDEX_NAME // Set the search index name.
}, function (err, data) {
if (err) {
console.log('error:', err);
return;
}
console.log('success:', data);
});