Remove a storefront domain

Removes a custom domain from the storefront.

Removes a custom domain from the storefront by its ID or hostname.

Requires the storefront:domains:write or storefront.write permission.

Request

DELETE /storefront/domains/{domainIdOrHostname}

Path Parameters

ParameterTypeDescription
domainIdOrHostnamestringThe domain ID or the hostname to remove.

Headers

HeaderValue
AuthorizationBearer <token>

Example Request

DELETE /storefront/domains/def456

or

DELETE /storefront/domains/www.myshop.com

Response

Returns the deleted domain object or a success confirmation, with the HTTP status code from the underlying provider.

Path Params
string
required

Domain ID or hostname

Response
200

OK

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!