public function emptytable() { $form = $this->param("form", null); if ($form) { $form = "form" . $form["_id"]; $this->app->db->remove("forms/{$form}", []); } return $form ? '{"success":true}' : '{"success":false}'; }