# Delete one or more certificates from the MDM certificate repository Delete one or more certificates from the MDM certificate repository. Optionally redistributes profiles that referenced the deleted certificates. ## Endpoint `DELETE /api/v1/mdm/profiles/certificates` ## Request ### Request URL `https://{server-hostname}:8383/api/v1/mdm/profiles/certificates` ### Scope `MDMDeviceMgmt.DELETE` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers | Parameter | Type | Required | Value | |---|---|---|---| | Content-Type | string | Mandatory | `application/json` | | Accept | string | Mandatory | `application/json` | #### Request Body `application/json` | Attribute | Type | Required | Description | |---|---|---|---| | certificate_ids | array | Mandatory | Array of certificate IDs to delete. Minimum 1, maximum 25 entries. Obtain from the [Get Certificates](https://www.manageengine.com/products/desktop-central/help/api/onpremise/certificates-get-certificates.html) response. | | redistribute_profiles | boolean | Optional | If true, automatically redistributes profiles that referenced the deleted certificates. Default false. | ### Sample Request ```curl curl --request DELETE \ --url https://appdomain/api/v1/mdm/profiles/certificates \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/json' \ --data '{"certificate_ids":[9007199254741000,9007199254741008,9007199254741296],"redistribute_profiles":false}' ``` ### Sample Request Body #### Delete multiple certificates by their IDs ```json { "certificate_ids": [ 9007199254741000, 9007199254741008, 9007199254741296 ], "redistribute_profiles": false } ``` #### Delete certificates and redistribute associated profiles ```json { "certificate_ids": [ 9007199254741000 ], "redistribute_profiles": true } ``` ## Response ### Response Parameters #### HTTP Code 202 Response Body: `application/json` | Attribute | Type | Description | |---|---|---| | status | boolean | true if the certificates were successfully deleted | ### Possible Response Codes | HTTP Code | Description | |---|---| | 202 | | ### Sample Response: HTTP 202 #### Certificates successfully deleted ```json { "status": true } ``` ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 60 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.