public function deleteDocumentFolderBySlug($slug)
    {
        $path = '/' . $slug;
        $this->repository->getContentRepository()->deleteDocumentByPath($this->repository, $path);
        $this->repository->getContentRepository()->cleanPublishedDeletedDocuments();
    }
public function deleteDocumentFolderBySlug($slug)
    {
        $path = '/' . $slug;
        $this->repository->getContentRepository()->deleteDocumentByPath($this->repository, $path);
        $this->repository->getContentRepository()->cleanPublishedDeletedDocuments();
    }
public function deleteDocumentFolderBySlug ( $ slug ) { $ path = '/' . $ slug ; $ this -> repository -> getContentRepository ( ) -> deleteDocumentByPath ( $ this -> repository , $ path ) ; $ this -> repository -> getContentRepository ( ) -> cleanPublishedDeletedDocuments ( ) ; }
Delete a folder by its compound slug

@param $slug

@throws \Exception
Delete a folder by its compound slug