Delete a domain
Delete /settings/domains/{sending}
URL parameters:
| Name | Description | Type | Mandatory |
|---|---|---|---|
| sending | Domain name with extension | String | Yes |
Response:
| Name | Description | Type |
|---|---|---|
| Response Code | 200 OK | Http Status Code |
Programming language:
Response exemple:
No json response
Code example:
curl -X DELETE -H "Content-Type: application/json" -H "X-Tipimail-ApiUser:YOUR_SMTP_USERNAME" -H "X-Tipimail-ApiKey:YOUR_SMTP_KEY" https://api.tipimail.com/v1/settings/domains/example.com
require 'vendor/autoload.php';
$tipimail = new Tipimail\Tipimail('YOUR_SMTP_USERNAME', 'YOUR_API_KEY');
try {
$tipimail->getSettingsService()->getDomainsService()->delete('example.com');
}
catch(Tipimail\Exceptions\TipimailException $e) {
echo 'Exception received :', $e->getMessage(), "\n";
}