---
title: "删除K8s集群"
method: DELETE
path: "/api/v1/k8s/cluster/{id}"
tags: ["K8s集群管理"]
---

# 删除K8s集群

`DELETE /api/v1/k8s/cluster/{id}`

删除指定的K8s集群（只能删除已停止的集群）

## Path parameters

- `id` integer, required

## Response `200`

删除成功

- ResultResult
  - `code` integer — 状态码
  - `data` unknown
  - `message` string — 提示信息

## Other responses

- `400` — 参数错误或集群状态不允许删除
- `404` — 集群不存在
- `500` — 服务器错误

---

[API](https://skmtc.net/opsre/apis/devops.md) · [All operations](https://skmtc.net/opsre/apis/devops/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opsre/devops/revisions/25cac8835c4c/schema)
