--- title: "Delete key" source_url: https://dev.digicert.com/certcentral-apis/discovery-api/keys/delete-key.html api_method: POST api_endpoint: "/apicontroller/v1/key/delete" api_url: "https://daas.digicert.com/apicontroller/v1/key/delete" --- **POST** `https://daas.digicert.com/apicontroller/v1/key/delete` Use this endpoint to permanently delete one or more SSH keys from the scan. ## Example requests and responses ## cURL ```bash curl --location --request POST 'https://daas.digicert.com/apicontroller/v1/key/delete' \ --header 'X-DC-DEVKEY: {{api_key}}' \ --header 'Content-Type: application/json' \ --data-raw '{ "accountId": 5153289, "divisionIds": [678010], "keyNameList": ["2500c5a5e2524ad63f30e6250538f4c7","3c6d5c995db5c6255ad3788ed2f57a01"] }' ``` ## 200 OK ```json { "error": null, "data": "success" } ``` ## Request parameters
Name Req/Opt Type Description
accountId required string Account ID.
divisionIds required array User's division IDs.
keyNameList required array List of one or more strings. Each string is the name of a key to delete.
## Response parameters
Name Type Description
error object Includes error codes, if any.
data string Message with information about the request.