Docs / API / Delete Domain

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

HeaderValueRequired
AuthorizationBearer <token>Yes
Content-Typeapplication/jsonYes

Body Parameters

ParameterTypeRequiredDescription
domainstringYesThe 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"
  }
}