public function delete(ObjectIdInterface $objectId, $allVersions = true)
    {
        $this->getBinding()->getObjectService()->deleteObject(
            $this->getRepositoryId(),
            $objectId->getId(),
            $allVersions
        );
        $this->removeObjectFromCache($objectId);
    }
public function delete(ObjectIdInterface $objectId, $allVersions = true)
    {
        $this->getBinding()->getObjectService()->deleteObject(
            $this->getRepositoryId(),
            $objectId->getId(),
            $allVersions
        );
        $this->removeObjectFromCache($objectId);
    }
public function delete ( ObjectIdInterface $ objectId , $ allVersions = true ) { $ this -> getBinding ( ) -> getObjectService ( ) -> deleteObject ( $ this -> getRepositoryId ( ) , $ objectId -> getId ( ) , $ allVersions ) ; $ this -> removeObjectFromCache ( $ objectId ) ; }
Deletes an object and, if it is a document, all versions in the version series.

@param ObjectIdInterface $objectId the ID of the object
@param boolean $allVersions if this object is a document this parameter defines
if only this version or all versions should be deleted
Deletes an object and if it is a document all versions in the version series .