Delete domain
curl --request DELETE \
--url https://api.moonemail.co/domains/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.moonemail.co/domains/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.moonemail.co/domains/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"object": "domain",
"id": "<string>",
"deleted": true
}{
"statusCode": 123,
"name": "<string>",
"message": "<string>"
}Domains
Delete domain
Remove a sending domain, interrupting sending through it. Only when explicitly requested.
Required permission: domains:delete.
DELETE
/
domains
/
{id}
Delete domain
curl --request DELETE \
--url https://api.moonemail.co/domains/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.moonemail.co/domains/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.moonemail.co/domains/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"object": "domain",
"id": "<string>",
"deleted": true
}{
"statusCode": 123,
"name": "<string>",
"message": "<string>"
}