Painting Blue Code
Simple, self-explanatory code snippets.
2015-08-13
MongoDB - How to remove all documents (row) from a collection (table)
db.COLLECTION_NAME.remove(
{}
);
// This works only on version 2 and below (no document being passed).
db.COLLECTION_NAME.remove();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment