---
title: "DELETE /network-policy/rules/{rule_id}"
method: DELETE
path: "/network-policy/rules/{rule_id}"
tags: ["Network Policy"]
---

# DELETE /network-policy/rules/{rule_id}

`DELETE /network-policy/rules/{rule_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/network-policy/rules/{rule_id}`
- Auth: HTTP bearer

## Path parameters

- `rule_id` integer, required

## Response `204`

Rule deleted

## Other responses

- `401`: Unauthorized
- `403`: Instance administrators only
- `404`: No such rule
- `409`: The rule belongs to a link; unlink instead
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 5 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - removed the required property `extensions` from the response with the `409` status
  - …1 more
- **2026-10-28** `b8d51a990805`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/network-policy/rules/:rule_id/delete.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
