Source: https://cli.nylas.com/docs/commands/webhook-delete

# nylas webhook delete

The nylas webhook delete command removes a webhook destination from your Nylas application. Pass the webhook ID with --id. The CLI confirms before deleting unless you pass --yes to skip the prompt. Deleted webhooks stop receiving event notifications immediately.

## Usage

```bash
nylas webhook delete --id WEBHOOK_ID [--yes]
```

## Flags

| Flag | Description |
| --- | --- |
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
| --id | Webhook ID to delete |

## Examples

### Delete a webhook by ID

```bash
nylas webhook delete --id wh_abc123def456 --yes
```

### List webhooks then delete one

```bash
nylas webhook list --json
nylas webhook delete --id wh_abc123def456
```

## Troubleshooting

### Webhook not found

Run nylas webhook list to see active webhooks. The ID may have already been deleted.

### Permission denied

Webhook deletion requires a valid API key. Run nylas auth config to verify credentials.

## Recommended guides

[Extract OTP Codes from Email — Skip the InboxPull 2FA verification codes from email without opening your inbox. nylas otp get copies the code to your clipboard. Works with Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.](https://cli.nylas.com/guides/extract-otp-codes-from-email)

[CI/CD Email Alerts with PowerShellSend build notifications, deployment reports, and test failure alerts from GitHub Actions, Azure DevOps, and Jenkins using PowerShell and Nylas CLI.](https://cli.nylas.com/guides/powershell-email-cicd)

[E2E Email Testing with PlaywrightTest password reset, invitation, and verification emails end-to-end. Poll with Nylas CLI, verify content in Playwright, and click links. No Gmail config needed.](https://cli.nylas.com/guides/e2e-email-testing)

Run `nylas webhook delete --help` for full help output.
