# DELETE /domains/{name}/certificate

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the certificates group.

Remove a domain's TLS certificate

- Who may call it: administrator, reseller, customer
- Token scope, any of: certificates, all
- Answers: 200 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

- [urbestack-cert-del](https://urbestack.com/docs/commands/urbestack-cert-del.md): Removes a domain's TLS certificate and private key, whether issued through UrbeStack or installed as a custom certificate.

## Parameters

- `name` (path, DomainName, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X DELETE "$API/domains/example.com/certificate" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "certificate": {
    "name": "alice",
    "reload": {},
    "removed": 1
  }
}
```

## Errors

- 400: Domain name required
- 400: Domain name too long
- 400: Invalid PHP version, expected e.g. 8.2
- 400: Invalid domain name
- 400: Nothing to change
- 400: Unknown PHP setting '<key>'; known: 
- 400: Unknown PHP version '<version>'
- 400: Unknown ssl key '<k>'
- 400: ssl must be an object
- 401: Authentication required
- 404: Domain '<name>' not found
