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
| Name | Required | Description | Default |
|---|---|---|---|
| vmId | Yes | The VM ID | |
| snapshotId | Yes | The snapshot ID to delete |
Implementation Reference
- src/services/iaas.ts:212-221 (handler)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}`); }