v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Park

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.

get/Park/unpark

Query parameters

domainstring domain required
Example:alias.example.com

The parked domain to remove.

subdomainstring
Example:shop_example.com

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.

Response

HTTP Request was successful.

{"stackTrail":"paths:/Park/unpark:get:responses:200:content:application/json:schema:properties:data","oasType":"schema","type":"unknown","description":"This function does not return data. Check the `status` field for the outcome, and the `messages` and `errors` fields for detail."}
errorsstring[] nullable
messagesstring[] nullable
status0 | 1
  • 1 — Success.
  • 0 — Failed. Check the errors field for more details.
warningsstring[] nullable

Example response

{
  "status": 1
}