public function delete()
{
$fileId = Encryption::decryptIdWithDash($this->request->data("file_id"));
if (!$this->file->exists($fileId)) {
return $this->error(404);
}
$this->file->deleteById($fileId);
$this->view->renderJson(array("success" => true));
}