original_string: public function deleteTree(
          $repositoryId,
          $folderId,
          $allVersions = true,
          UnfileObject $unfileObjects = null,
          $continueOnFailure = false,
          ExtensionDataInterface $extension = null
      ) {
          $url = $this->getObjectUrl($repositoryId, $folderId);
          $url->getQuery()->modify(
              [
                  Constants::CONTROL_CMISACTION => Constants::CMISACTION_DELETE_TREE,
                  Constants::PARAM_FOLDER_ID => $folderId,
                  Constants::PARAM_ALL_VERSIONS => $allVersions ? 'true' : 'false',
                  Constants::PARAM_CONTINUE_ON_FAILURE => $continueOnFailure ? 'true' : 'false'
              ]
          );
  
          if ($unfileObjects !== null) {
              $url->getQuery()->modify([Constants::PARAM_UNFILE_OBJECTS => (string) $unfileObjects]);
          }
  
          return $this->getJsonConverter()->convertFailedToDelete($this->postJson($url));
      }
code: public function deleteTree(
          $repositoryId,
          $folderId,
          $allVersions = true,
          UnfileObject $unfileObjects = null,
          $continueOnFailure = false,
          ExtensionDataInterface $extension = null
      ) {
          $url = $this->getObjectUrl($repositoryId, $folderId);
          $url->getQuery()->modify(
              [
                  Constants::CONTROL_CMISACTION => Constants::CMISACTION_DELETE_TREE,
                  Constants::PARAM_FOLDER_ID => $folderId,
                  Constants::PARAM_ALL_VERSIONS => $allVersions ? 'true' : 'false',
                  Constants::PARAM_CONTINUE_ON_FAILURE => $continueOnFailure ? 'true' : 'false'
              ]
          );
  
          if ($unfileObjects !== null) {
              $url->getQuery()->modify([Constants::PARAM_UNFILE_OBJECTS => (string) $unfileObjects]);
          }
  
          return $this->getJsonConverter()->convertFailedToDelete($this->postJson($url));
      }
code_tokens: public function deleteTree ( $ repositoryId , $ folderId , $ allVersions = true , UnfileObject $ unfileObjects = null , $ continueOnFailure = false , ExtensionDataInterface $ extension = null ) { $ url = $ this -> getObjectUrl ( $ repositoryId , $ folderId ) ; $ url -> getQuery ( ) -> modify ( [ Constants :: CONTROL_CMISACTION => Constants :: CMISACTION_DELETE_TREE , Constants :: PARAM_FOLDER_ID => $ folderId , Constants :: PARAM_ALL_VERSIONS => $ allVersions ? 'true' : 'false' , Constants :: PARAM_CONTINUE_ON_FAILURE => $ continueOnFailure ? 'true' : 'false' ] ) ; if ( $ unfileObjects !== null ) { $ url -> getQuery ( ) -> modify ( [ Constants :: PARAM_UNFILE_OBJECTS => ( string ) $ unfileObjects ] ) ; } return $ this -> getJsonConverter ( ) -> convertFailedToDelete ( $ this -> postJson ( $ url ) ) ; }
docstring: Deletes the specified folder object and all of its child- and descendant-objects.
  
  @param string $repositoryId the identifier for the repository
  @param string $folderId the identifier for the folder
  @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 UnfileObject|null $unfileObjects defines how the repository must process file-able child- or
  descendant-objects (default is <code>UnfileObject::DELETE</code>)
  @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
  @param ExtensionDataInterface|null $extension
  @return FailedToDeleteDataInterface Returns a list of object ids that could not be deleted
docstring_tokens: Deletes the specified folder object and all of its child - and descendant - objects .