Purge Work Orders
Work Orders
Purge Work Orders
Bulk delete work orders by status and age criteria
POST
Purge Work Orders
Purge Work Orders
Bulk deletes work orders matching specified criteria. Supports filtering by status and age, with a dry-run mode to preview deletions.Request
Filter by work order statuses. If omitted, applies to all statuses.
Valid values:
queued, running, waiting_for_children, integrating, succeeded, failed, canceledOnly delete work orders older than this many days
If true, returns what would be deleted without actually deleting
Dry Run Example
Response
Indicates if the request was successful
Purge result
Example Responses
Actual Purge
Dry Run
No Matches
Common Purge Patterns
Clean Up Old Failures
Delete failed work orders older than 7 days:Archive Completed Work
Delete successful work orders older than 90 days:Clean All Terminal States
Delete all completed (success, fail, cancel) work orders older than 30 days:Preview Before Delete
Always use dry run first to verify:What Gets Deleted
When a work order is purged:- The work order record
- All associated runs
- All run audit records
- All iteration snapshots
Logs stored externally (e.g., in a log aggregation service) are not affected by purge.
Best Practices
Related
- List Work Orders - View work orders before purging
- Get Work Order - Check individual work order details