---
title: "Leave Bot"
method: DELETE
path: "/bots/{bot_id}"
tags: ["bots"]
---

# Leave Bot

`DELETE /bots/{bot_id}`

Remove a bot from a meeting by its ID.

This will:
1. Call the MeetingBaas API to make the bot leave
2. Close WebSocket connections if they exist
3. Terminate the associated Pipecat process

## Path parameters

- `bot_id` string, required

## Request body

- LeaveBotRequest — Request model for making a bot leave a meeting
  - `bot_id` string, nullable — The MeetingBaas bot ID to remove from the meeting. This will also close the WebSocket connection made through Pipecat by this bot.

## Response `200`

Bot successfully removed from meeting

- object

## Other responses

- `400` — Bad request - Missing required fields or identifiers
- `404` — Bot not found - No bot with the specified ID
- `422` — Validation Error
- `500` — Server error - Failed to remove bot from MeetingBaas API

---

[API](https://skmtc.net/meeting-baas/apis/meeting-baas-api.md) · [All operations](https://skmtc.net/meeting-baas/apis/meeting-baas-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meeting-baas/meeting-baas-api/revisions/ede837500622/schema)
