delete_replica
Permanently remove a video replica by its unique identifier to manage storage and resources in the Tavus MCP Server.
Instructions
Delete a replica permanently
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replica_id | Yes | Unique identifier for the replica |
Implementation Reference
- src/index.ts:813-822 (handler)The deleteReplica handler method that executes the tool logic. It extracts replica_id from args, makes a DELETE request to /replicas/{replica_id} endpoint, and returns a success message.
private async deleteReplica(args: any) { const { replica_id } = args; await this.axiosInstance.delete(`/replicas/${replica_id}`); return { content: [{ type: 'text', text: `Successfully deleted replica ${replica_id}`, }], }; } - src/index.ts:203-212 (schema)Input schema definition for delete_replica tool. Defines a required 'replica_id' property of type string with description 'Unique identifier for the replica'.
inputSchema: { type: 'object', properties: { replica_id: { type: 'string', description: 'Unique identifier for the replica', }, }, required: ['replica_id'], }, - src/index.ts:200-213 (registration)Tool registration for delete_replica. Registers the tool with name 'delete_replica', description 'Delete a replica permanently', and the input schema.
{ name: 'delete_replica', description: 'Delete a replica permanently', inputSchema: { type: 'object', properties: { replica_id: { type: 'string', description: 'Unique identifier for the replica', }, }, required: ['replica_id'], }, }, - src/index.ts:698-699 (handler)Switch case that dispatches delete_replica tool calls to the deleteReplica handler method, passing the request arguments.
case 'delete_replica': return await this.deleteReplica(request.params.arguments);