I am trying to remove an item from a collection that is stored in a mongoose document. My document looks like this:
{ \"__v\": 3, \"_id\": \"5221040475f
You can simply use $pull to remove a sub-document.
Collection.update({ _id: parentDocumentId }, { $pull: { subDocument: { _id: SubDocumentId } } });
This will find your parent document against given ID and then will remove the element from subDocument which matched the given criteria.