Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (9 sloc) 247 Bytes

Delete documents: deleteOne() & deleteMany()

Delete the first document matching criteria:

> db.movies.deleteOne({year: 1959})

Delete all documents matching criteria:

> db.movies.deleteMany({year: 1959})