Skip to main content
Glama

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
NameRequiredDescriptionDefault
networkVolumeIdYesID of the network volume to delete

Implementation Reference

  • 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), }, ], }; }
  • 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), }, ], }; } );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/runpod/runpod-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server