# Dequeue

> Tag 8: the client withdraws every message from the queue of the running loop; the server opens the proxy’s /agent/dequeue and relays exactly one channel response stating whether the queue held anything.

Canonical: https://provider.diverge.network/2.3.0/endpoints/containers-agents-run/client/dequeue/
Specification revision: 2.3.0

The client opens this channel to withdraw every message waiting in
the queue of the running loop. The server opens
[`/agent/dequeue`](/2.3.0/proxy/agent/dequeue/) on the proxy and relays its
answer.

- **The request.** The tag byte `8` and nothing more.
  [Request](/2.3.0/endpoints/containers-agents-run/client/dequeue/request/) states its form.
- **The response.** Exactly one channel response and the channel
  response finish. [Response](/2.3.0/endpoints/containers-agents-run/client/dequeue/response/)
  states the sequence.
- **The messages withdrawn.** Each message withdrawn is answered on
  its own [enqueue](/2.3.0/endpoints/containers-agents-run/client/enqueue/) channel with the byte
  `1`, as the proxy answers it.
