Removes an index from a data collection.
The process of dropping an index from a collection takes time. You can check whether an index has been dropped by calling List Indexes.
function dropIndex(dataCollectionId: string, indexName: string): Promise<void>;
ID of the data collection for which the index to be dropped is defined.
Name of the index to drop.
import { indexes } from "@wix/data";
async function dropIndex(dataCollectionId, indexName) {
const response = await indexes.dropIndex(dataCollectionId, indexName);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.