MongoDB – Drop Index:

In MongoDB, we can remove the index by using the command below. We need to provide the required fields on which the indexes need to be removed.


First verify the indexes already created in a collection.

Drop the index on “firstname” field.

Now Verify the index that was removed