/** * Delete * (array)ids * * @throws App_Exception_FileIsNotWritable * @throws App_Exception_Forbidden */ public function deleteAction() { $files = App_Model_File::fetchAll(['user' => (string) $this->user->id, 'identity' => ['$in' => $this->getParam('ids')]]); foreach ($files as $file) { $this->storage->delete($file); } }