Command Central 10.5 | Using the Command Line Interface | Jobmanager Jobs Commands | sagcc delete jobmanager landscapejobs
 
sagcc delete jobmanager landscapejobs
Attempts to cancel a long-running job on any of the Platform Managers that are managed by the same Command Central instance. The success of the cancel operation depends on the status of the job as described in the Usage Notes section for this command.
Syntax
*Command Central syntax:
sagcc delete jobmanager landscapejobs  node_alias   jobid  [options]
*Not supported on Platform Manager.
             
 options:               
[--force]               
Arguments and Options
Argument or Option
Description
node_alias
Specifies the alias name of the installation for which you want to cancel a long-running job.
jobid
Required. Specifies the ID of the job that you want to cancel.
[options]
Optional. The command allows all options supported by the Command Line Interface. For a description of the options, see Common Options.
Usage Notes
*When the command cancels a job successfully, it returns code 200 OK. If the command returns code 202 Accepted, the job might not be canceled. You should verify the status of the job using the sagcc get jobmanager jobs command.
*If the status of a long-running job is RUNNING, the command attempts to cancel the job, but might fail to cancel it.
*When the status of a long-running job is DONE, CANCELED, SCHEDULED, TIMEDOUT, or ERROR, the command removes the job from the jobs list.
Example When Executed on Command Central
To cancel the job with ID “5” that is running in the installation with alias “prod-is”:
sagcc delete jobmanager landscapejobs prod-is 5