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

# Delete a search index

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

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

`dropSearchIndex()` accepts this field:

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

Delete a search index

```javascript
db.docs.dropSearchIndex("search_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

`$search` 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()`.
