---
title: "Delete a match rule"
method: DELETE
path: "/v1/contexts/{contextId}/rules/{ruleId}"
tags: ["Configuration Match Rules"]
---

# Delete a match rule

`DELETE /v1/contexts/{contextId}/rules/{ruleId}`

Use this endpoint to delete a specific match rule by its identifier.

## Path parameters

- `contextId` string, required
- `ruleId` string, required

## Headers

- `X-Request-Id` string

## Response `204`

Match rule successfully deleted

## Other responses

- `400` — Invalid rule ID
- `401` — The request lacks valid authentication credentials.
- `403` — You do not have permission to access this resource.
- `404` — Match rule not found
- `500` — An unexpected error occurred on the server.

---

[API](https://skmtc.net/lerian/apis/identity-plugin.md) · [All operations](https://skmtc.net/lerian/apis/identity-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lerian/identity-plugin/versions/25daba385532/schema)
