delete-template
Remove a template from the RunPod MCP Server by specifying its template ID to manage your infrastructure resources.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templateId | Yes | ID of the template to delete |
Implementation Reference
- src/index.ts:608-622 (handler)The main handler logic for the 'delete-template' tool. It performs a DELETE request to `/templates/${templateId}` using the shared `runpodRequest` utility and formats the response as a text content block.async (params) => { const result = await runpodRequest( `/templates/${params.templateId}`, 'DELETE' ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/index.ts:605-607 (schema)Input schema defining the `templateId` parameter as a required string.{ templateId: z.string().describe('ID of the template to delete'), },
- src/index.ts:603-623 (registration)The server.tool call that registers the 'delete-template' tool with its name, schema, and inline handler function.server.tool( 'delete-template', { templateId: z.string().describe('ID of the template to delete'), }, async (params) => { const result = await runpodRequest( `/templates/${params.templateId}`, 'DELETE' ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } );