MongoDB\BSON\Document::offsetUnset Implementation of ArrayAccess &reftitle.description; final public voidMongoDB\BSON\Document::offsetUnset mixedkey Unsets the value at the specified index. &reftitle.parameters; key The index being unset. &reftitle.returnvalues; &return.void; &reftitle.errors; Always throws a MongoDB\Driver\Exception\LogicException.