Skip to main content
Discards undelivered follow-up messages for an agent. By default, it removes all queued and deferred messages. Pass the follow_up_id returned by queue_add to remove exactly one, whether it is still pending its deliver_at delay or already queued. Use clear_queue with the message ID to cancel a self-scheduled deferred follow-up that is no longer needed. The targeted form is idempotent and reports whether it removed anything. Equivalent to murmur queue clear and murmur queue remove in the CLI. This does not affect the agent’s current turn. Use interrupt if you also want to stop the in-progress turn.

Parameters

Response

Without follow_up_id, a JSON object with the number of cleared entries: With follow_up_id: follow-up removed, or no undelivered follow-up with that ID (already delivered, already removed, or never queued).

Examples

Clear own queue

Response:

Cancel one deferred follow-up

Response:

Errors