Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

mongodb delete all documents

# To remove all documents in a collection, call the remove method with an empty query
# document {}. The following operation deletes all documents from the bios collection:

db.bios.remove( { } )
Source by docs.mongodb.com #
 
PREVIOUS NEXT
Tagged: #mongodb #delete #documents
ADD COMMENT
Topic
Name
3+6 =