public function deleteObject(
        $repositoryId,
        $objectId,
        $allVersions = true,
        ExtensionDataInterface $extension = null
    ) {
        $url = $this->getObjectUrl($repositoryId, $objectId);
        $content = [
           Constants::CONTROL_CMISACTION => Constants::CMISACTION_DELETE,
           Constants::PARAM_ALL_VERSIONS => $allVersions ? 'true' : 'false',
           ];

        $this->post($url, $content);
        $this->flushCached();
    }
public function deleteObject(
        $repositoryId,
        $objectId,
        $allVersions = true,
        ExtensionDataInterface $extension = null
    ) {
        $url = $this->getObjectUrl($repositoryId, $objectId);
        $content = [
           Constants::CONTROL_CMISACTION => Constants::CMISACTION_DELETE,
           Constants::PARAM_ALL_VERSIONS => $allVersions ? 'true' : 'false',
           ];

        $this->post($url, $content);
        $this->flushCached();
    }
public function deleteObject ( $ repositoryId , $ objectId , $ allVersions = true , ExtensionDataInterface $ extension = null ) { $ url = $ this -> getObjectUrl ( $ repositoryId , $ objectId ) ; $ content = [ Constants :: CONTROL_CMISACTION => Constants :: CMISACTION_DELETE , Constants :: PARAM_ALL_VERSIONS => $ allVersions ? 'true' : 'false' , ] ; $ this -> post ( $ url , $ content ) ; $ this -> flushCached ( ) ; }
Deletes the specified object.

@param string $repositoryId the identifier for the repository
@param string $objectId the identifier for the object
@param boolean $allVersions If <code>true</code> then delete all versions of the document, otherwise delete only
the document object specified (default is <code>true</code>)
@param ExtensionDataInterface|null $extension
Deletes the specified object .