---
title: "Remove an inbound mail rule"
method: DELETE
path: "/api/emails/{address}/rules/{ruleId}"
tags: ["Email"]
---

# Remove an inbound mail rule

`DELETE /api/emails/{address}/rules/{ruleId}`

## Request

- Base URL: `https://domani.run`
- URL: `https://domani.run/api/emails/{address}/rules/{ruleId}`
- Auth: HTTP bearer

Remove an inbound filtering rule from a mailbox.

## Path parameters

- `address` string, required
- `ruleId` string, required

## Response `200`

Rule removed

- object
  - `id` string
  - `deleted` boolean
  - `hint` string

## Other responses

- `404`: Rule not found on this mailbox

---

[API](https://skmtc.dev/domani/apis/domani-run-api.md) · [All operations](https://skmtc.dev/domani/apis/domani-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/domani/apis/domani-run-api/revisions/7679f8159533?raw)
