# Delete an alert rule

> **DELETE** `https://api.us.nylas.com/v3/alerts/send/{rule_id}`

Source: https://developer.nylas.com/docs/reference/api/send-alerts/delete-send-alert-rule/

Deletes the specified alert rule. Nylas stops checking it right away.

**Authentication:** NYLAS_API_KEY

## Parameters

### Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `rule_id` | string, format: uuid | Yes | The ID of the alert rule. |

## Responses

### 200 - Success: Object deleted

- `request_id` (string) **(required)** - The ID of the request.

### 401 - Unauthorized

- `request_id` (string) - The request ID.
- `error` (object) - The response error object.
  - `type` (string) - The error type.
  - `message` (string) - The error message.
  - `provider_error` (object) - The error from the provider.

### 403 - Forbidden. These endpoints need your application's API key, not a grant access token.

- `request_id` (string) - The request ID.
- `error` (object) - The response error object.
  - `type` (string) - The error type.
  - `message` (string) - The error message.

### 404 - Not found. Your application has no alert rule with this ID.

- `request_id` (string) - The request ID.
- `error` (object) - The response error object.
  - `type` (string) - The error type.
  - `message` (string) - The error message.

## Code samples

### cURL

```bash
curl --request DELETE \
  --url "https://api.us.nylas.com/v3/alerts/send/<RULE_ID>" \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer <NYLAS_API_KEY>'
```
