Note: Only connected domains can be deleted.
curl --location --request DELETE 'https://api.zapmail.ai/api/v2/domains' \
--header 'x-auth-zapmail;' \
--header 'x-workspace-key;' \
--header 'x-service-provider;' \
--header 'Content-Type: application/json' \
--data-raw '{
"ids": ["64e71b99-bc07-4b5d-90b6-6abc0120c08c"]
}'{
"message": "Domains removed successfully"
}