MongoDB Indexes Dropping/Deleting an Index


Example

If index name is known,

db.collection.dropIndex('name_of_index');

If index name is not known,

db.collection.dropIndex( { 'name_of_field' : -1 } );