liara_delete_vm
Delete a virtual machine from the Liara cloud platform by specifying its VM ID to remove infrastructure resources.
Instructions
Delete a virtual machine
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vmId | Yes | The VM ID to delete |
Implementation Reference
- src/services/iaas.ts:136-143 (handler)The core handler function that implements deleting a Liara virtual machine (VM) by its ID. It validates the VM ID, creates a specialized IaaS API client, and sends a DELETE request to the Liara IaaS API endpoint `/vm/{vmId}`.export async function deleteVM( client: LiaraClient, vmId: string ): Promise<void> { validateRequired(vmId, 'VM ID'); const iaasClient = createIaaSClient(client); await iaasClient.delete(`/vm/${vmId}`); }