See Stacksync in action with a solution architect. Book a demo ↗
Queues

Queues

Clear a queue's waiting records

DELETE
/v1/workspaces/{workspace_id}/queues/{workflows_app_queue_id}/records

Every record waiting in the queue is removed and never reaches the consumer workflow. The queue itself stays.

Authorization

Authorizationstringheaderrequired

Bearer <key>, where <key> is a workspace API key or a user API key. See Authentication.

Path Parameters

workspace_id*integer

The workspace. List the ones your key can reach with GET /v1/workspaces.

workflows_app_queue_id*string

The queue.

Formatuuid

Query Parameters

region*Regions

Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them

Value in"besg""usnv"

Response Body

OK

application/json
  1. response
queue_id*Queue Id
Clear a queue's waiting records
curl -X DELETE 'https://api.stacksync.com/v1/workspaces/0/queues/497f6eca-6276-4993-bfeb-53cbbbba6f08/records?region=besg'
{  "queue_id": "<queue_id>"}