> For the complete documentation index, see [llms.txt](https://docs.percona.com/percona-search-for-mongodb/llms.txt).

# Delete vector search index

Use the [db.collection.dropIndex()](https://www.mongodb.com/docs/manual/reference/method/db.collection.dropIndex/) method to delete a vector search index from a collection.

```javascript
db.<collection>.dropSearchIndex(<name>)
```

`dropSearchIndex()` accepts this field:

| Field  | Type     | Required | Description                         |
| ------ | -------- | -------- | ----------------------------------- |
| `name` | `string` | Required | Name of the search index to delete. |

Delete vector search index named `vector_idx`

```javascript
db.products.dropSearchIndex("vector_idx");
```

Deleting an index is irreversible. To restore search functionality, create the index again with `createSearchIndex()`, and wait for the initial sync to complete before running queries against it.

Warning

`$vectorSearch` queries that reference an index that does not exist return an empty result set rather than an error. If your application starts receiving empty search results after an index change, verify that the index exists and check its status with `getSearchIndexes()`.
