Deleting one or all existing MX Records using the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your command.

See RFC 1035 for more information about MX Records.

REST Syntax

Click to view all REST Resources
/REST/MXRecord/ DELETE — Deleting one or all existing MX Record on the zone/node indicated.

HTTP Action — DELETE

URIs:

Delete one MX record — https://api.dynect.net/REST/MXRecord/<zone>/<fqdn>/<record_id>/

Delete all MX records — https://api.dynect.net/REST/MXRecord/<zone>/<fqdn>/

Arguments:

No Arguments.

Response:

Not Applicable.

Dyn Logo

SOAP Syntax

Click to view all SOAP Commands
DeleteOneMXRecord — Delete one existing MX Record on the zone/node indicated.

DeleteMXRecords — Delete all existing MX Records on the zone/node indicated.

Arguments:

DeleteOneMXRecord — Click for More Info

DeleteMXRecords — Click for More Info

Response:

Not Applicable.

Example Request (DeleteOneMXRecord) — Click for More Info

Example Request (DeleteMXRecords) — Click for More Info