This question already has an answer here:
I have the following code which works fine in my mongodb client:-
db.whatevercollection.update({id:999999,external_ids:{}},
{$unset: { "external_ids": true}})
How do I reference this empty set in php so that the external_ids field is completely removed? Using this:-
array('id' => $id,'external_ids'=>array())
Doesn't work...
</div>