Skip to main content
Glama

liara_delete_snapshot

Remove a specific virtual machine snapshot from the Liara cloud platform to free storage space and manage infrastructure resources.

Instructions

Delete a VM snapshot

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vmIdYesThe VM ID
snapshotIdYesThe snapshot ID to delete

Implementation Reference

  • Handler function that executes the deletion of a Liara VM snapshot. This is the core logic for the 'liara_delete_snapshot' MCP tool, taking VM ID and snapshot ID as parameters and calling the IaaS API to delete the snapshot.
    export async function deleteSnapshot( client: LiaraClient, vmId: string, snapshotId: string ): Promise<void> { validateRequired(vmId, 'VM ID'); validateRequired(snapshotId, 'Snapshot ID'); const iaasClient = createIaaSClient(client); await iaasClient.delete(`/vm/${vmId}/snapshots/${snapshotId}`); }

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