src/GridFS/Repository.php
public function deleteOne($document, $options = [])
    {
        $unhydratedObject = $this->hydrator->unhydrate($document);

        $id = $unhydratedObject["_id"];

        $this->bucket->delete($id);
        $this->documentManager->removeObject($document);
    }
public function deleteOne($document, $options = [])
    {
        $unhydratedObject = $this->hydrator->unhydrate($document);

        $id = $unhydratedObject["_id"];

        $this->bucket->delete($id);
        $this->documentManager->removeObject($document);
    }
public function deleteOne ( $ document , $ options = [ ] ) { $ unhydratedObject = $ this -> hydrator -> unhydrate ( $ document ) ; $ id = $ unhydratedObject [ "_id" ] ; $ this -> bucket -> delete ( $ id ) ; $ this -> documentManager -> removeObject ( $ document ) ; }
Delete a document form gr

@param   object|array    $document   Document or query to delete
@param   array           $options    Useless, just for Repository compatibility
@return void
Delete a document form gr