latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Mail
Mail DNS Settings

Remove domains' DMARC records.

This function removes the DMARC DNS record from a domain.

Note:

You cannot remove DMARC records from temporary domains.

get/remove_dmarc

Query parameters

domainstring

The domain for which to remove the DMARC record.

Note:

If you do not include this argument, the system will remove all DMARC records from all domains.

To remove multiple domain DMARC records, duplicate the parameter name. For example, use the domain=example-1.com, domain=example-2.com, and domain=example-3.com parameters.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "payload": [
      {
        "domain": "example.com",
        "msg": "[REMOVE:TXT@_dmarc.exmaple.com:v=DMARC1; p=reject;]",
        "status": 1
      }
    ]
  },
  "metadata": {
    "command": "remove_dmarc",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}