Skip to main content

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​

ShorthandLong versionDescription
-f--forceForce deletion
--helpShow this help message and exit

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