# Remove a parked (aliased) domain

This function unparks (removes the alias for) a domain on the cPanel
account.

Important:

- This function removes the alias only. It does not remove the
  subdomain that an addon domain is parked on. To remove both, use the
  AddonDomain::deladdondomain function instead.
- The account must have either the Parked Domains or the *Addon
  Domains* feature.

When you disable the Web Server role,
the system disables this function.

Endpoint: GET /Park/unpark
Version: 11.138.0.10
Security: BasicAuth

## Query parameters:

  - `domain` (string, required)
    The parked domain to remove.
    Example: "alias.example.com"

  - `subdomain` (string)
    The subdomain that the domain is parked on, given in the underscore-separated form that the AddonDomain::listaddondomains function returns in its domainkey field.

Omit this parameter to let the system determine the subdomain. Pass it only when the domain is parked on a subdomain rather than on the primary domain.
    Example: "shop_example.com"

## Response 200 fields (application/json):

  - `data` (any)
    This function does not return data. Check the status field for the outcome, and the messages and errors fields for detail.

  - `errors` (array,null)

  - `messages` (array,null)

  - `metadata` (object)

  - `metadata.transformed` (integer)

  - `status` (integer)
    * 1 — Success.
* 0 — Failed. Check the errors field for more details.
    Enum: 0, 1

  - `warnings` (array,null)


