DELETE

Delete Connected Domain


Deletes a connectedDomain object and removes related DNS records from Google's Cloud DNS.

You must pass the relevant Wix account ID in the header of the call.

If you delete a "PRIMARY" domain, the site automatically uses the standard URL for free Wix sites. Read more about URLs of free Wix sites.

When you delete a subdomain, its CNAME record is deleted from Google's Cloud DNS.

Important: This call requires an account level API key and cannot be authenticated with the standard authorization header.

Endpoint
DELETE
https://www.wixapis.com/domains/v1/connected-domains/{connectedDomainId}

Path Params
connectedDomainIdstringRequired

ID of the connected domain to delete. Identical to the domain name including TLD.

Response Object
Returns an empty object.
Delete a connected domain.
Request
cURL
curl -X DELETE 'https://www.wixapis.com/domains/v1/connected-domains/mysite.com' \ -H 'wix-account-id: <ACCOUNT_ID>' \ -H 'Authorization: <AUTH>' \
Response
JSON
{}
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?