delete-network-storage
Remove network storage from the Novita AI platform by specifying its unique ID to free up resources and manage storage allocation.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storageId | Yes | The unique ID of the network storage to delete. Please ensure it exists before updating. |
Implementation Reference
- src/tools.ts:605-615 (handler)Handler that deletes the network storage by sending a POST request to the API endpoint `/networkstorage/delete` using the provided params.}, async (params) => { const result = await novitaRequest(`/networkstorage/delete`, "POST", params); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; });
- src/tools.ts:601-604 (schema)Zod schema for the tool input: requires a non-empty string 'storageId'.storageId: z .string() .nonempty() .describe("The unique ID of the network storage to delete. Please ensure it exists before updating."),
- src/tools.ts:600-615 (registration)Registration of the 'delete-network-storage' tool in the registerNetworkStorageTools function.server.tool("delete-network-storage", { storageId: z .string() .nonempty() .describe("The unique ID of the network storage to delete. Please ensure it exists before updating."), }, async (params) => { const result = await novitaRequest(`/networkstorage/delete`, "POST", params); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; });