public static function remove($params) { $name = $params->get('name'); try { $result = Jobs::remove($name); } catch (Exception $e) { throw new RpcException($e->getMessage(), -31001); } return $result; }
private function remove($job) { $result = SourceJobs::remove($job); if ($result == false) { return $this->color->convert("\n%yJob not found%n"); } return $this->color->convert("\n%gJob deleted%n"); }