MongoDB - delete documents from a collection

Professionaluser
Posted by Professionaluser under Sql Server category on | Points: 40 | Views : 364
remove() method is used to delete documents based on specified conidtion. Removes all documents that match the specified condition.

>db.restaurants.remove ( { "name": "ABC" } )

Comments or Responses

Login to post response