Use $pull to remove items from an array of items like below :
db.User.update(
{ },
{ $pull: { event: { _id: 12346 } } }
)
The $pull operator removes from an existing array all instances of a
value or values that match a specified condition.
Empty object in the first parameter is the query to find the documents. The above method removes the items with _id: 12345 in the event array in all the documents in the collection.
If there are multiple items in the array that would match the condition, set multi option to true as shown below :
db.User.update(
{ },
{ $pull: { event: { _id: 12346 } } },
{ multi: true}
)