robbiblubber.org

help | login | search:  
>>

read  source  history 


dropIndex()


MongoDB Driver Function Reference


Drops an index on the collection.
More information can be found in the corresponding entry of the MongoDB Manual.



<collection>.dropIndex(<name>)



Arguments


<collection> The target collection.
<name> Index name



Example


db.employees.dropIndex("salary_ix");


Drops the salary_ix index on the employees collection.














home | MongoDB Driver Function Reference | MongoDB Driver