Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
13 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})
You can’t perform that action at this time.