Domains

Delete Domain

Permanently delete a domain and all senders associated with it. This action cannot be undone.

DELETEhttps://graph.sendcorex.com/v3.0/domains/:domain
!

This is permanent. Every sender that belongs to the domain is deleted with it, and this cannot be undone.

Path parameters

  • domainstringrequired

    The domain name to delete.

    e.g. "sendcorex.com"

Quick start

import axios from 'axios';

const response = await axios.delete('https://graph.sendcorex.com/v3.0/domains/sendcorex.com', {
  headers: { Authorization: process.env.SENDCOREX_API_KEY },
});

console.log(response.data);

Response

{
  "success": true,
  "code": "DOMAIN_DELETED",
  "domain": "sendcorex.com",
  "responseTime": "156ms"
}

Response fields

  • code

    DOMAIN_DELETED when the domain was removed.

  • domain

    The domain that was deleted.

Errors

HTTP-level errors return type, code and message. Errors marked CMD come back inside the command result, with HTTP 200.

  • 401INVALID_API_KEY

    The API key is invalid or revoked.

  • 404DOMAIN_NOT_FOUND

    The domain does not exist or does not belong to your account.