# grant.deleted

Source: https://developer.nylas.com/docs/reference/notifications/grants/grant-deleted/

Sent when a grant is deleted because of a Delete Grant request.

**Recommended action:** Remove the grant from your local database and stop making API calls on its behalf.

## data.object fields

- `code` (integer) - Nylas notification code.
- `grant_id` (string) - Unique identifier for the deleted grant.
- `integration_id` (string) - Identifier for the connector (integration) associated with this grant.
- `provider` (string) (google, microsoft, imap, yahoo, icloud, ews, eas) - Email provider for this grant.
- `email` (string) - Email address associated with the deleted grant.

## Example payload

```json
{
  "specversion": "1.0",
  "type": "grant.deleted",
  "source": "/nylas/system",
  "id": "<WEBHOOK_ID>",
  "time": 1723821985,
  "data": {
    "application_id": "<NYLAS_APPLICATION_ID>",
    "object": {
      "code": 25013,
      "grant_id": "<NYLAS_GRANT_ID>",
      "integration_id": "<NYLAS_INTEGRATION_ID>",
      "provider": "google",
      "email": "user@example.com"
    }
  },
  "webhook_delivery_attempt": 1
}
```
