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();
    }