public function deleteTree($allVersions, UnfileObject $unfile, $continueOnFailure = true)
    {
        $failed = $this->getBinding()->getObjectService()->deleteTree(
            $this->getRepositoryId(),
            $this->getId(),
            $allVersions,
            $unfile,
            $continueOnFailure
        );

        if (count($failed->getIds()) === 0) {
            $this->getSession()->removeObjectFromCache($this);
        }

        return $failed;
    }
public function deleteTree($allVersions, UnfileObject $unfile, $continueOnFailure = true)
    {
        $failed = $this->getBinding()->getObjectService()->deleteTree(
            $this->getRepositoryId(),
            $this->getId(),
            $allVersions,
            $unfile,
            $continueOnFailure
        );

        if (count($failed->getIds()) === 0) {
            $this->getSession()->removeObjectFromCache($this);
        }

        return $failed;
    }
public function deleteTree ( $ allVersions , UnfileObject $ unfile , $ continueOnFailure = true ) { $ failed = $ this -> getBinding ( ) -> getObjectService ( ) -> deleteTree ( $ this -> getRepositoryId ( ) , $ this -> getId ( ) , $ allVersions , $ unfile , $ continueOnFailure ) ; if ( count ( $ failed -> getIds ( ) ) === 0 ) { $ this -> getSession ( ) -> removeObjectFromCache ( $ this ) ; } return $ failed ; }
Deletes this folder and all subfolders.

@param boolean $allVersions If <code>true</code>, then delete all versions of all documents. If
<code>false</code>, delete only the document versions referenced in the tree. The repository MUST ignore the
value of this parameter when this service is invoked on any non-document objects or non-versionable document
objects.
@param UnfileObject $unfile An enumeration specifying how the repository MUST process file-able child- or
descendant-objects.
@param boolean $continueOnFailure If <code>true</code>, then the repository SHOULD continue attempting to
perform this operation even if deletion of a child- or descendant-object in the specified folder cannot be
deleted. If <code>false</code>, then the repository SHOULD abort this method when it fails to
delete a single child object or descendant object.
@return FailedToDeleteDataInterface A list of identifiers of objects in the folder tree that were not deleted.
Deletes this folder and all subfolders .