```
curl -X "DELETE" {{ api_url }}/v1/events \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY
-d 'queue_id=1515096410:1'
```
```python
#!/usr/bin/env python
import zulip
# Download ~/zuliprc-dev from your dev server
client = zulip.Client(config_file="~/zuliprc-dev")
# Delete a queue
print(client.deregister(queue_id="1515096410:1"))
```
More examples and documentation can be found [here](https://github.com/zulip/zulip-js).
```js
const zulip = require('zulip-js');
// Download zuliprc-dev from your dev server
const config = {
zuliprc: 'zuliprc-dev',
};
zulip(config).then((client) => {
// Register a queue
const queueParams = {
event_types: ['message']
};
client.queues.register(queueParams).then((res) => {
// Delete a queue
const deregisterParams = {
queue_id: res.queue_id,
};
client.queues.deregister(deregisterParams).then(console.log);
});
});
```