delete_video
Remove a video permanently from the Tavus MCP Server by providing its unique identifier to manage storage and content.
Instructions
Delete a video permanently
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_id | Yes | Unique identifier for the video |
Implementation Reference
- src/index.ts:869-878 (handler)The deleteVideo method is the handler that executes the delete_video tool logic. It extracts the video_id from arguments, makes a DELETE request to the API endpoint /videos/${video_id}, and returns a success message.
private async deleteVideo(args: any) { const { video_id } = args; await this.axiosInstance.delete(`/videos/${video_id}`); return { content: [{ type: 'text', text: `Successfully deleted video ${video_id}`, }], }; } - src/index.ts:321-334 (registration)The delete_video tool is registered with its name, description, and input schema. The schema defines a required 'video_id' parameter of type string.
{ name: 'delete_video', description: 'Delete a video permanently', inputSchema: { type: 'object', properties: { video_id: { type: 'string', description: 'Unique identifier for the video', }, }, required: ['video_id'], }, }, - src/index.ts:710-711 (registration)Switch case that routes the 'delete_video' tool request to the deleteVideo handler method with the provided arguments.
case 'delete_video': return await this.deleteVideo(request.params.arguments);