#!/usr/bin/env python3importzulip# Pass the path to your zuliprc file here.client=zulip.Client(config_file="~/zuliprc")# Delete a queue (queue_id is the ID of the queue# to be removed)result=client.deregister(queue_id)print(result)
More examples and documentation can be found here.
constzulipInit=require("zulip-js");// Pass the path to your zuliprc file here.constconfig={zuliprc:"zuliprc"};(async()=>{constclient=awaitzulipInit(config);// Register a queueconstqueueParams={event_types:["message"],};constres=awaitclient.queues.register(queueParams);// Delete a queueconstderegisterParams={queue_id:res.queue_id,};console.log(awaitclient.queues.deregister(deregisterParams));})();
The ID of an event queue that was previously registered via
POST /api/v1/register (see Register a queue).
Response
Example response(s)
Changes: As of Zulip 7.0 (feature level 167), if any
parameters sent in the request are not supported by this
endpoint, a successful JSON response will include an
ignored_parameters_unsupported array.
A typical successful JSON response may look like:
{"msg":"","result":"success"}
A typical JSON response for when the queue_id is non-existent or the
associated queue has already been deleted: