Horje
mongodb delete all documents Code Example
mongodb remove all from collection
db.collection.remove({})
mongodb delete all documents
db.collection.delete_many( { } );
delete all documents in a collection mongodb
#delete all the items of a given collection 
db.campaigns.deleteMany({})
mongo delete all documents
db.bios.remove( { } )
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( { } )
remove all db entries from mongo
db.users.remove({})




16

Related
print an array in c Code Example print an array in c Code Example
latex font sizes Code Example latex font sizes Code Example
how to genrate a random number in C Code Example how to genrate a random number in C Code Example
boolean in c Code Example boolean in c Code Example
write a program to find reverse of given number Code Example write a program to find reverse of given number Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11