---
title: "卸载指定主机的agent(支持单个或多个)"
method: DELETE
path: "/api/v1/monitor/agent/uninstall"
tags: ["监控"]
---

# 卸载指定主机的agent(支持单个或多个)

`DELETE /api/v1/monitor/agent/uninstall`

停止agent服务并删除相关文件，单个主机传[hostId]，多个主机传[hostId1,hostId2,hostId3]

## Request body

- ModelBatchDeployAgentDto
  - `hostIds` integer[], required — 主机ID列表
  - `version` string — 版本

## Response `200`

OK

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

---

[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)
