original_string: public function delete(ObjectIdInterface $objectId, $allVersions = true)
      {
          $this->getBinding()->getObjectService()->deleteObject(
              $this->getRepositoryId(),
              $objectId->getId(),
              $allVersions
          );
          $this->removeObjectFromCache($objectId);
      }
code: public function delete(ObjectIdInterface $objectId, $allVersions = true)
      {
          $this->getBinding()->getObjectService()->deleteObject(
              $this->getRepositoryId(),
              $objectId->getId(),
              $allVersions
          );
          $this->removeObjectFromCache($objectId);
      }
code_tokens: public function delete ( ObjectIdInterface $ objectId , $ allVersions = true ) { $ this -> getBinding ( ) -> getObjectService ( ) -> deleteObject ( $ this -> getRepositoryId ( ) , $ objectId -> getId ( ) , $ allVersions ) ; $ this -> removeObjectFromCache ( $ objectId ) ; }
docstring: 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
docstring_tokens: Deletes an object and if it is a document all versions in the version series .