delete_bot_data
Remove all data linked to a bot, including recordings and transcripts, in the Attendee MCP Server by specifying the bot ID.
Instructions
Delete all data associated with a bot (recordings, transcripts, etc.)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot_id | Yes | ID of the bot to delete data for |
Implementation Reference
- src/index.ts:768-796 (handler)The handler function that performs the actual deletion by calling the backend API to delete all data (recordings, transcripts, etc.) associated with the given bot_id and returns a formatted success message.private async deleteBotData(args: Record<string, unknown>) { const bot_id = args.bot_id as string; if (!bot_id || typeof bot_id !== 'string') { throw new Error("Missing or invalid required parameter: bot_id"); } const data = await this.makeApiRequest(`/api/v1/bots/${bot_id}/delete_data`, "POST"); return { content: [ { type: "text", text: [ `✅ Successfully deleted all data for bot ${bot_id}`, "", "🗑️ The following data has been permanently deleted:", "• Recording files", "• Transcript data", "• Chat messages", "• Participant information", "", "⚠️ This action cannot be undone.", "💡 Bot metadata is preserved for audit purposes.", ].join("\n"), }, ], }; }
- src/index.ts:385-398 (registration)Registers the 'delete_bot_data' tool in the ListTools response, including its name, description, and input schema.{ name: "delete_bot_data", description: "Delete all data associated with a bot (recordings, transcripts, etc.)", inputSchema: { type: "object", properties: { bot_id: { type: "string", description: "ID of the bot to delete data for", }, }, required: ["bot_id"], }, },
- src/index.ts:388-397 (schema)Input schema definition for the tool, specifying the required 'bot_id' parameter.inputSchema: { type: "object", properties: { bot_id: { type: "string", description: "ID of the bot to delete data for", }, }, required: ["bot_id"], },
- src/index.ts:440-441 (handler)Switch case in the CallToolRequest handler that routes the tool invocation to the deleteBotData method.case "delete_bot_data": return await this.deleteBotData(args);