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.1
List the projects in the organization:
GET /v1/organizations/{orgId}/projects.2
For each project, list its alerts:
GET /v1/projects/{projectId}/monitors. Inspect each alert’s notifications array for the email you’re deleting.3
For each alert that references the email,
PATCH /v1/monitors/{id} with a new notifications payload that omits it.4
Retry
DELETE /v1/notification-emails/{id}.{baseURL}/organizations/{orgId}/monitors and remove the email from each affected alert there.