curl -X DELETE "https://your-paneldns-domain.com/api/v1/zones/501" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"ok": true,
"data": null
}
{
"ok": false,
"error": "Not found.",
"code": 404
}
Zones
Delete Zone
Delete a DNS zone and remove it from the provider. Requires zones:write scope.
DELETE
/
api
/
v1
/
zones
/
{id}
curl -X DELETE "https://your-paneldns-domain.com/api/v1/zones/501" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"ok": true,
"data": null
}
{
"ok": false,
"error": "Not found.",
"code": 404
}
Deletes the zone from PanelDNS and from the DNS provider. This action is irreversible — all records will be removed from the provider immediately. The zone is soft-deleted in PanelDNS (retained for 30 days in audit logs).
This permanently removes the zone from your DNS provider. Ensure you have a backup (use Export Zone) before deleting.
integer
required
Zone ID.
curl -X DELETE "https://your-paneldns-domain.com/api/v1/zones/501" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"ok": true,
"data": null
}
{
"ok": false,
"error": "Not found.",
"code": 404
}