Get your free beta license ↗
API operation · certificates group
DELETE

/domains/{name}/certificate

First published 3 Oct 20260.1.0Unchanged since publication

Remove a domain's TLS certificate

Who may call it
AdministratorResellerCustomer
Token scope, any of
certificatesall
Answers200 OK

Removes the TLS certificate and private key, whether UrbeStack issued the certificate or it was installed as a custom certificate. UrbeStack disables HTTPS for the site and sets its certificate mode to none, which excludes the domain from automatic renewal. The 200 response includes the removal result in certificate.

As a command

Run as root on the server

Parameters

namepath ·DomainNameRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X DELETE "$API/domains/example.com/certificate" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "certificate": {
    "name": "alice",
    "reload": {},
    "removed": 1
  }
}

Errors

11 errors, each a status and a sentence
400Domain name required
400Domain name too long
400Invalid PHP version, expected e.g. 8.2
400Invalid domain name
400Nothing to change
400Unknown PHP setting '<key>'; known:
400Unknown PHP version '<version>'
400Unknown ssl key '<k>'
400ssl must be an object
401Authentication required
404Domain '<name>' not found
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/delete-domains-name-certificate/