---
title: "Delete an email rule"
method: DELETE
path: "/v1/email-rules/{rule_id}"
tags: ["Email"]
---

# Delete an email rule

`DELETE /v1/email-rules/{rule_id}`

## Request

- Base URL: `https://api-eu.dynamicdocumentapi.com`
- URL: `https://api-eu.dynamicdocumentapi.com/v1/email-rules/{rule_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Its emails that were not sent yet are canceled. Works on every plan.

## Path parameters

- `rule_id` string, required

## Response `204`

Deleted.

## Other responses

- `401`: Missing, invalid, expired or revoked credentials.
- `403`: Insufficient scope, IP not allowed, workspace suspended or scheduled for deletion, or email not verified.
- `404`: Email rule not found.
- `429`: Rate limited (`Retry-After`).
- `503`: The control plane is unreachable (`Retry-After`).

---

[API](https://skmtc.dev/dynamicdocumentapi/apis/dynamic-document-api.md) · [All operations](https://skmtc.dev/dynamicdocumentapi/apis/dynamic-document-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dynamicdocumentapi/apis/dynamic-document-api/revisions/0f14bc0000f4?raw)
