/** * @return array */ public function AjaxFolderDelete() { $sFolderFullNameRaw = (string) $this->getParamValue('Folder', ''); if (0 === strlen(trim($sFolderFullNameRaw))) { throw new \ProjectCore\Exceptions\ClientException(\ProjectCore\Notifications::InvalidInputParameter); } $oAccount = $this->getAccountFromParam(); $this->oApiMail->deleteFolder($oAccount, $sFolderFullNameRaw); return $this->TrueResponse($oAccount, __FUNCTION__); }