---
title: "删除ServiceMonitor"
method: DELETE
path: "/service_monitors/namespaces/:namespace/servicemonitors/:name"
tags: ["Metrics"]
---

# 删除ServiceMonitor

`DELETE /service_monitors/namespaces/:namespace/servicemonitors/:name`

## Request

- Base URL: `/bcsapi/v4/monitor/api/projects/:projectId/clusters/:clusterId` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/bcsapi/v4/monitor/api/projects/:projectId/clusters/:clusterId/service_monitors/namespaces/:namespace/servicemonitors/:name`
- Auth: none declared

## Response `200`

OK

## Changes

- **2026-07-17** `ba6addc245e8`: 1 info
  - endpoint added
- **2022-05-18** `1e1b695c30e0`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/tencentblueking/apis/bcs-monitor-openapi/changes/service_monitors/namespaces/:namespace/servicemonitors/:name/delete.md)

---

[API](https://skmtc.dev/tencentblueking/apis/bcs-monitor-openapi.md) - [All operations](https://skmtc.dev/tencentblueking/apis/bcs-monitor-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/bcs-monitor-openapi/revisions/ba6addc245e8?raw)
