Skip to main content
Glama

liara_delete_disk

Remove a disk from an application on the Liara cloud platform by specifying the app and disk names to manage storage resources.

Instructions

Delete a disk

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNameYesThe name of the app
diskNameYesThe name of the disk to delete

Implementation Reference

  • The main handler function for deleting a disk in a Liara project. This implements the core logic of the 'liara_delete_disk' tool by calling the Liara API to delete the specified disk.
    export async function deleteDisk( client: LiaraClient, appName: string, diskName: string ): Promise<void> { validateAppName(appName); validateRequired(diskName, 'Disk name'); await client.delete(`/v1/projects/${appName}/disks/${diskName}`); }
  • Type definitions related to disks, including Disk interface used in API responses.
    export interface Disk {
  • Validation helpers used in deleteDisk, like validateAppName and validateRequired. (Assuming content based on usage; exact lines approximate.)
    constructor( message: string, public code?: string, public details?: any, public suggestions?: string[]
  • Validation calls within the handler.
    validateAppName(appName); validateRequired(diskName, 'Disk name'); await client.delete(`/v1/projects/${appName}/disks/${diskName}`); }

Other Tools

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/razavioo/liara-mcp'

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