Forms\Controller\Api::emptytable PHP Method

emptytable() public method

public emptytable ( )
    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}';
    }