public function AjaxFilesDelete() { $oAccount = $this->getDefaultAccountFromParam(); if (!$this->oApiCapability->isFilesSupported($oAccount)) { throw new \ProjectCore\Exceptions\ClientException(\ProjectCore\Notifications::FilesNotAllowed); } $sType = $this->getParamValue('Type'); $aItems = @json_decode($this->getParamValue('Items'), true); $oResult = false; foreach ($aItems as $oItem) { $oResult = $this->oApiFilestorage->delete($oAccount, $sType, $oItem['Path'], $oItem['Name']); } return $this->DefaultResponse($oAccount, __FUNCTION__, $oResult); }