public function AjaxFilesDelete() { $oAccount = $this->getDefaultAccountFromParam(); if (!$this->oApiCapability->IsFilesSupported($oAccount)) { throw new \ProjectSeven\Exceptions\ClientException(\ProjectSeven\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); }