Resetting
Note
These endpoints are available in both
application/jsonandapplication/msgpackformats.
Warning
The endpoints described here irreversibly delete data. There is no confirmation step. Reach for them deliberately.
When developing locally or running fixtures in tests, it’s common to want to return the server to a known-empty state between iterations. Per-resource bulk deletion is documented elsewhere:
DELETE /jobs— bulk-delete jobs by filter (or every job, when called with no filters).DELETE /crons— delete every cron group and its entries in one request.
This page covers the single endpoint that does both at once.
POST /reset
Wipe every cron group and every job in a single request. Composes the bulk job delete and bulk cron delete paths so that any clients subscribed to job or cron lifecycle changes see the same per-deletion events they would from those endpoints individually.
In-flight jobs are deleted along with everything else. Workers currently
processing those jobs will receive 404 responses when they later attempt
to acknowledge them.
Responses
204 No Content
No response body is included for a successful response.