rmj
This command removes a job.
caution
bx rmj removes all file references associated to the job.
Usage
bx rmj [-f] [--help] <jobId>
Parameters and inputs
- Parameters
- Inputs
| Shorthand | Long version | Description |
|---|---|---|
-f | --force | Force deletion |
--help | Show this help message and exit |
| Input | Description | Required |
|---|---|---|
<jobId> | Id of the job to delete | true |
Examples
Remove a job
$ bx jobs -al1
ID IMAGE AGO USER BX-UNITS INPUT STATUS COST/H RUNTIME COST
143 n@t/word-count:1.0.1 4 d nacho 1x1000x0 325 B SUCCEEDED 0.34 USD 13 s 0.01 USD
13 s 0.01 USD
Specify the id of the job you want to remove.
$ bx rmj 143
BatchX will prompt you to confirm this action. After confirmation, all file references within the job directory will be removed.
Are you sure you want to delete this job and its related files? (yes/no)
yes
[batchx] [INFO] [2020/03/06 17:45:54] Job successfully deleted
In addition, the job has been marked as deleted in the job registry. This can be verified with the bx jobs command.
$ bx jobs -al1
ID IMAGE AGO USER BX-UNITS INPUT STATUS COST/H RUNTIME COST
143 n@t/word-count:1.0.1 4 d nacho 1x1000x0 325 B SUCCEEDED* 0.34 USD 13 s 0.01 USD
'*': Deleted 13 s 0.01 USD