---
title: "Delete all certificates and endpoints"
source_url: https://dev.digicert.com/certcentral-apis/discovery-api/certificates/delete-all-certificates-and-endpoints.html
api_method: POST
api_endpoint: "/apicontroller/v1/certificate/deleteAllCertificatesEndpoints"
api_url: "https://daas.digicert.com/apicontroller/v1/certificate/deleteAllCertificatesEndpoints"
---
**POST** `https://daas.digicert.com/apicontroller/v1/certificate/deleteAllCertificatesEndpoints`
Delete all certificates and endpoints associated with the scan results permanently from an account.
## Example requests and responses
## cURL
```bash
curl -X POST \
https://daas.digicert.com/apicontroller/v1/certificate/deleteAllCertificatesEndpoints \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
"accountId": 5153184
}'
```
## 200 OK
```json
{
"error": null,
"data": "All certificates and endpoints deleted."
}
```
## Request parameters
| Name |
Req/Opt |
Type |
Description |
| accountId |
required |
string |
Account ID. |
## Response parameters
| Name |
Type |
Description |
| error |
object |
Includes the error code, if any. |
| data |
object |
Message with information about the request. |