Remove a custom domain
curl --request DELETE \
--url https://{your-subdomain}.neetoform.com/api/external/v2/custom_domains/{hostname} \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/custom_domains/{hostname}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v2/custom_domains/{hostname}"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"notice": "The custom domain is successfully deleted."
}{
"error": "NeetoCustomDomainsEngine::Domain does not exist."
}Custom domains
Remove a custom domain
Remove a custom domain. It is also removed from the hosting provider.
DELETE
/
custom_domains
/
{hostname}
Remove a custom domain
curl --request DELETE \
--url https://{your-subdomain}.neetoform.com/api/external/v2/custom_domains/{hostname} \
--header 'X-Api-Key: <x-api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<x-api-key>'}};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/custom_domains/{hostname}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v2/custom_domains/{hostname}"
headers = {"X-Api-Key": "<x-api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"notice": "The custom domain is successfully deleted."
}{
"error": "NeetoCustomDomainsEngine::Domain does not exist."
}Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Path Parameters
Hostname of the custom domain. You can get it from the List custom domains API.
Example:
"forms.example.com"
Response
OK - Request succeeded
Example:
"The custom domain is successfully deleted."