How to delete document by _id using quickmongo [MongoDB]?

Viewed 120

I've been trying for an hour, searching everywhere, and i've found no solution.

1 Answers

To delete by _id, use remove() in MongoDB. Following is the syntax −

db.yourCollectionName.remove({_id:yourObjectId});
Related