Database

[{"_id":1,"array":[1,2,3]}]

Query

db.collection.update({_id:1},{"$pull":{array:5}})

Result