orbstack_machine_delete
Permanently delete a specified Linux virtual machine and all its data from OrbStack on macOS. This irreversible action removes the machine completely from the system.
Instructions
删除指定的 Linux 机器。
警告: 此操作不可撤销,机器中的所有数据将被永久删除。
Args: params: 包含机器名称
Returns: str: 删除结果
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Implementation Reference
- src/orbstack_mcp/server.py:498-515 (handler)The function implementation of orbstack_machine_delete which calls `orb delete -f`.
async def orbstack_machine_delete(params: MachineNameInput) -> str: """删除指定的 Linux 机器。 警告: 此操作不可撤销,机器中的所有数据将被永久删除。 Args: params: 包含机器名称 Returns: str: 删除结果 """ code, stdout, stderr = await _run_orb(["delete", "-f", params.name]) if code != 0: return _format_error(stderr) return f"机器 '{params.name}' 已删除" @mcp.tool( - src/orbstack_mcp/server.py:488-497 (registration)Registration of the orbstack_machine_delete tool using the @mcp.tool decorator.
@mcp.tool( name="orbstack_machine_delete", annotations={ "title": "删除 Linux 机器", "readOnlyHint": False, "destructiveHint": True, "idempotentHint": False, "openWorldHint": False, }, )