Skip to main content

qbremove

Description

qbremove requests the Supervisor to remove a list of jobs.

Usage

qbremove [options] jobID... | 0

where JobID is one or more job IDs, and 0 is a wild card token representing all the user's jobs.

danger

Job removal is a fairly database- and disk-intensive operation; avoid removing a very large number of jobs at one time. Limit job removal to 1000 jobs at a time, and wait a few minutes between removals to avoid the supervisor's filesystem getting swamped with table deletion operations.

Options

OptionDescription
--failedRemove failed jobs
--killedRemove killed jobs
--completeRemove complete jobs
--doneRemove done (complete,killed,failed) jobs
--pendingRemove pending jobs (admin only)
--runningRemove running jobs (admin only)
--activeRemove active (running,pending,blocked) jobs (admin only)
--user stringRemove jobs for user string
--type string --prototype stringRemove jobs with string type
--status stringRemove jobs with string status (ex. pending)
--name stringRemove jobs with string name
--kind stringRemove jobs of string kind
--pid intRemove jobs with process ID int
--pgrp intRemove jobs in int process group
--priority intRemove jobs with int priority
--cluster stringRemove jobs in string cluster
--cpus intRemove jobs with a total of int subjobs
--xmlOutput in XML format
--helpCommand help
--versionCommand version

Notes

This command only works on jobs which are considered complete, unless the use has the Qube 'admin' privilige, in which case the user could conceivably remove all jobs in queue.

For non-admin users, jobs which are still pending or running will be ignored. (ex. pending, running, blocked, suspended).

Refer to User Permissions or qbusers for more detail on the Qube! permission scheme.

Examples

Remove job 12345:

% qbremove 12345

Remove all of user anthony's jobs:

% qbremove --user anthony 0

See also

Clean Up Old Jobs Automatically