Delete work items
Delete items by status, age, tags or ids. Only completed and failed items are deleted unless force is on (items in progress never are, unless forced).
Command in the Work queues toolkit · id ooa.workload/delete_items · 7 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Queue | String | Yes | Queue name. | |
| Status | String | No | finished | finished: completed and failed items; any: every status (needs force for the others). |
| Older than (hours) | Number | No | 0 | Only items last changed more than this many hours ago (0: any age). |
| Tags | List | No | Only items that have all these tags. | |
| Item IDs | List | No | Only these items. | |
| Force | Boolean | No | false | Also delete items that are new, deferred or in progress. |
| Central | Boolean | No | false | Use the One CommandCenter queue with this name instead of the workspace's own file (runs started from One CommandCenter only). |
Outputs
| Output | Type | What it is |
|---|---|---|
| count | Number | Items deleted. |