> ## Documentation Index
> Fetch the complete documentation index at: https://docs.particle.pro/llms.txt
> Use this file to discover all available pages before exploring further.

# notification_email_in_use

> The notification email is still referenced by one or more alerts

|                    |                              |
| ------------------ | ---------------------------- |
| **HTTP status**    | `409 Conflict`               |
| **Error code**     | `notification_email_in_use`  |
| **Resolve action** | `edit_monitor_notifications` |

## What happened

You tried to delete a notification email that is still listed as a delivery target on one or more alerts in the organization. The system refuses to remove it so alerts don't silently stop delivering.

## How to fix

Alerts are project-scoped, not org-scoped, so locating every alert that references the email is a two-step traversal: list the org's projects, then list alerts per project.

<Steps>
  <Step>
    List the projects in the organization: `GET /v1/organizations/{orgId}/projects`.
  </Step>

  <Step>
    For each project, list its alerts: `GET /v1/projects/{projectId}/monitors`. Inspect each alert's `notifications` array for the email you're deleting.
  </Step>

  <Step>
    For each alert that references the email, `PATCH /v1/monitors/{id}` with a new `notifications` payload that omits it.
  </Step>

  <Step>
    Retry `DELETE /v1/notification-emails/{id}`.
  </Step>
</Steps>
