Skip to content

Delete account-level webhooks

Request

Delete account-level webhooks for the authenticated account. You can either delete all webhooks by setting all=true, or specify specific webhook IDs to delete via webhook_ids. If both are provided, the specific webhook_ids will be deleted. Note: Webhook changes can take up to 10 minutes to become effective due to caching.

Security
basicAuth
Query
webhook_idsstring

Comma-separated list of webhook IDs to delete. If provided, only these specific webhooks will be deleted.

allboolean

Set to 'true' to delete all account-level webhooks. This acts as a safety mechanism to prevent accidental deletion of all webhooks.

curl -i -X DELETE \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v1/webhooks?webhook_ids=string&all=true'

Responses

A 204 response

Response
No content