Description
This function deletes a mail exchanger.
Warning:
- UAPI (recommended) —
Email::delete_mx
— This function deletes a Mail Exchanger (MX) record. - cPanel API 2 —
Email::delmx
— This function deletes a mail exchanger.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
Required The domain name. |
A valid domain on the server. |
example.com |
exchange |
string |
Required The mail exchanger's name. |
The mail exchanger's name inname.example.com format, whereexample.com is the domain name. |
mail.example.com |
preference |
integer |
The mail exchanger's priority. For more information about priority levels, read our Edit MX Entry documentation. |
An integer value. Note: It is common practice to set a priority value that is divisible by five. |
15 |
Returns
This function does not return output.