---
title: "Remove an addon domain"
method: GET
path: "/AddonDomain/deladdondomain"
tags: ["AddonDomain"]
---

# Remove an addon domain

`GET /AddonDomain/deladdondomain`

This function removes an addon domain from the cPanel account. It unparks
the addon domain and then removes the subdomain that the domain was parked
on.

**Important:**

- The `domain` and `subdomain` values must match each other. If the
  subdomain does not correspond to the addon domain, the function fails.
- If other domains are still parked on the subdomain, the system unparks
  the addon domain but leaves the subdomain in place, and says so in the
  `messages` field.
- This function does **not** remove the addon domain's document root or
  the files in it.

When you disable the [Web Server role](https://go.cpanel.net/serverroles#roles),
the system **disables** this function.

## Query parameters

- `domain` string, domain, required
- `subdomain` string, required
- `disallowdot` 0 | 1

## Response `200`

HTTP Request was successful.

- object
  - `data` unknown
  - `errors` string[], nullable
  - `messages` string[], nullable
  - `metadata` object
    - `transformed` integer
  - `status` 0 | 1 — * `1` — Success. * `0` — Failed. Check the `errors` field for more details.
  - `warnings` string[], nullable

---

[API](https://skmtc.net/cpanel/apis/cpanel-uapi.md) · [All operations](https://skmtc.net/cpanel/apis/cpanel-uapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/cpanel-uapi/revisions/632e2f8e6d04/schema)
