delete-pod
Remove a specific pod from the RunPod platform by providing its unique ID to free up resources and manage infrastructure.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| podId | Yes | ID of the pod to delete |
Implementation Reference
- src/index.ts:303-315 (handler)The asynchronous handler function for the 'delete-pod' tool. It takes a podId parameter, makes a DELETE request to the Runpod API endpoint `/pods/${podId}`, and returns the result formatted as JSON text content.async (params) => { const result = await runpodRequest(`/pods/${params.podId}`, 'DELETE'); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } );
- src/index.ts:300-302 (schema)Zod input schema defining the required 'podId' parameter as a string with description.{ podId: z.string().describe('ID of the pod to delete'), },
- src/index.ts:298-316 (registration)Registration of the 'delete-pod' tool on the MCP server using server.tool(), specifying the name, input schema, and inline handler function.server.tool( 'delete-pod', { podId: z.string().describe('ID of the pod to delete'), }, async (params) => { const result = await runpodRequest(`/pods/${params.podId}`, 'DELETE'); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } );