Database

[{"collection":"Post","count":100,"content":{"_id":{"type":"autoincrement","autoType":"int","startInt":0},"post":{"type":"faker","method":"HackerPhrase"},"postLikes":{"type":"array","minLength":0,"maxLength":5,"arrayContent":{"type":"enum","randomOrder":true,"values":[{"$oid":"6309548f820a879df1436860"},{"$oid":"6309548f820a879df1436861"},{"$oid":"6309548f820a879df1436862"},{"$oid":"6309548f820a879df1436863"},{"$oid":"6309548f820a879df1436864"},{"$oid":"6309548f820a879df1436865"},{"$oid":"6309548f820a879df1436866"},{"$oid":"6309548f820a879df1436867"},{"$oid":"6309548f820a879df1436868"},{"$oid":"6309548f820a879df1436869"}]}}}}]

Query

db.Post.update({"postLikes":{"$in":[ObjectId("6309548f820a879df1436862"),ObjectId("6309548f820a879df1436867")]}},{"$pullAll":{"postLikes":[ObjectId("6309548f820a879df1436862"),ObjectId("6309548f820a879df1436867")]}},{"multi":true})

Result