---
title: "删除虚拟机"
method: DELETE
path: "/api/v1/users/hosts/{host_id}/vms/{id}"
tags: ["【用户】主机管理"]
---

# 删除虚拟机

`DELETE /api/v1/users/hosts/{host_id}/vms/{id}`

删除虚拟机

## Path parameters

- `host_id` string, required
- `id` string, required

## Response `200`

成功

- WebResp
  - `code` integer
  - `data` unknown
  - `message` string

## Other responses

- `400` — 请求参数错误
- `401` — 未授权
- `404` — 虚拟机不存在
- `500` — 服务器错误

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/versions/5a5929cb17f2/schema)
