Delete a search index

Updated at:

You can call the DeleteSearchIndex operation to delete a search index that is created for a data table.

Prerequisites

Usage notes

A deleted search index cannot be recovered. Proceed with caution.

Parameters

Parameter

Description

tableName

The name of the data table.

indexName

The name of the search index.

Examples

The following sample code provides an example on how to delete a search index:

client.deleteSearchIndex({
    tableName: TABLE_NAME, // Specify the name of the data table. 
    indexName: INDEX_NAME // Specify the name of the search index. 
}, function (err, data) {
    if (err) {
        console.log('error:', err);
        return;
    }
    console.log('success:', data);
});

References