delete-network-volume
Remove a network volume from the RunPod MCP Server by specifying its ID to free up storage resources and manage infrastructure.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| networkVolumeId | Yes | ID of the network volume to delete |
Implementation Reference
- src/index.ts:718-738 (handler)The complete inline handler implementation for the 'delete-network-volume' tool. It registers the tool with MCP server, defines the input schema requiring networkVolumeId, and executes a DELETE request to the RunPod API endpoint `/networkvolumes/{networkVolumeId}` using the shared runpodRequest helper, returning the JSON response as text content.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), }, ], }; } );