collection.remove

Mongo documentation

Remove documents. Set the multi option to false remove only the first document that match the query criteria.

Arguments

  1. query (Object|ObjectId|String)

  2. [options] (Object)

  3. [callback] (function)

Returns

A promise.

Example

users.remove({ woot: 'foo' })

results matching ""

    No results matching ""