---
title: "Delete MockRule by id"
method: DELETE
path: "/api/{env}/mock/rule"
tags: ["MockRules"]
---

# Delete MockRule by id

`DELETE /api/{env}/mock/rule`

Delete MockRule by id

## Path parameters

- `env` string, required

## Request body

- ModelMockRule
  - `enable` boolean
  - `id` integer
  - `methodName` string
  - `rule` string
  - `serviceName` string

## Response `200`

OK

- boolean

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/apache/apis/dubbo-admin-api.md) · [All operations](https://skmtc.dev/apache/apis/dubbo-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apache/dubbo-admin-api/revisions/3620d40f4941/schema)
