MongoDB - drop a collection

Professionaluser
Posted by Professionaluser under Sql Server category on | Points: 40 | Views : 257
To drop a collection from a database, use below code in MongoDB

>db.CollectionName.drop()


returns true if the collection is dropped

Comments or Responses

Login to post response