Delete Domain
Permanently remove a domain from your account. This action will delete the zone file and stop all DNS resolution immediately.
Irreversible Action
This action cannot be undone. All associated DNS records (A, MX, CNAME, etc.) will be permanently deleted and traffic to this domain will stop.
Endpoint
DELETEhttps://api.alinflow.com/v1/domain/delete
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <token> | Yes |
Content-Type | application/json | Yes |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | The domain name to delete (e.g., example.com). |
Example Request
curl -X DELETE "https://api.alinflow.com/v1/domain/delete" \
-H "Authorization: Bearer <YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"domain": "example.com"
}'Success Response
{
"success": true,
"message": "Domain deleted successfully",
"data": {
"domain": "example.com",
"deletedAt": "2023-11-25T10:10:00.000Z"
}
}