MongoDB opposite of $addToSet

Solution 1:

I think you are looking for $pull, which "removes all instances of a value from an existing array".

db.collection.update(
  {name: 'object1'}, 
  {$pull: { tags: 'dah'}});