delete-network-volume
Remove a network volume from the RunPod MCP Server by specifying its ID to free up storage resources and manage cloud infrastructure.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| networkVolumeId | Yes | ID of the network volume to delete |
Implementation Reference
- src/index.ts:723-737 (handler)The handler function executes the tool logic by making a DELETE request to the RunPod API endpoint `/networkvolumes/{networkVolumeId}` using the shared runpodRequest helper, and returns the JSON response as text content.async (params) => { const result = await runpodRequest( `/networkvolumes/${params.networkVolumeId}`, 'DELETE' ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/index.ts:720-722 (schema)Input schema using Zod to validate the required networkVolumeId parameter.{ networkVolumeId: z.string().describe('ID of the network volume to delete'), },
- src/index.ts:718-738 (registration)Registration of the 'delete-network-volume' tool with the MCP server using server.tool(), including schema and inline handler.server.tool( 'delete-network-volume', { networkVolumeId: z.string().describe('ID of the network volume to delete'), }, async (params) => { const result = await runpodRequest( `/networkvolumes/${params.networkVolumeId}`, 'DELETE' ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } );