Skip to content

Delete a single forward rule by ID

Request

By default this call is scoped to the entire account. You can scope the request by providing the 'domain.name' query parameter. If the 'domain.name' parameter is provided and the requested rule is not defined for that domain the call will return 404 Not Found

Security
basicAuth
Path
idstringrequired

The ID of the forward rule

Query
domain.namestring

The name of the domain the rule is scoped to

curl -i -X DELETE \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/forwards/{id}?domain.name=string'

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

Response
{ "message": "forward rule '1234' deleted" }