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.
Request URL https://{serverurl} /api/v1/mdm/profiles/certificates
Scope
Header Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
- Request Body application/json JSON object
Hide Sub-Attributes certificate_ids array Mandatory
Array of certificate IDs to delete. Minimum 1, maximum 25 entries. Obtain from the Get Certificates response
redistribute_profiles boolean Optional
If true, automatically redistributes profiles that referenced the deleted certificates. Default false
Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request DELETE \
--url https://appdomain/api/v1/mdm/profiles/certificates \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--data '{"certificate_ids":[9007199254741000,9007199254741008,9007199254741296]}'import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.io.IOException;
import java.net.http.HttpTimeoutException;
public class Main {
public static void main(String[] args) {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://appdomain/api/v1/mdm/profiles/certificates"))
.header("content-type", "application/json")
.header("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52")
.method("DELETE", HttpRequest.BodyPublishers.ofString("{\"certificate_ids\":[9007199254741000,9007199254741008,9007199254741296]}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
import http.client
conn = http.client.HTTPSConnection("appdomain")
payload = "{\"certificate_ids\":[9007199254741000,9007199254741008,9007199254741296]}"
headers = {
'content-type': "application/json",
'Authorization': "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52"
}
conn.request("DELETE", "/api/v1/mdm/profiles/certificates", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
headersMap = Map();
headersMap.put("Content-Type", "application/json");
headersMap.put("Accept", "application/json");
data=Map();
data_certificate_ids=List();
data.put("certificate_ids",data_certificate_ids);
response = invokeUrl
[
url: "https://appDomain/api/v1/mdm/profiles/certificates"
type: DELETE
headers: headersMap
body: data
connection: connection_name
]
info response;
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52")
$response = Invoke-WebRequest -Uri 'https://appdomain/api/v1/mdm/profiles/certificates' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '{"certificate_ids":[9007199254741000,9007199254741008,9007199254741296]}'▼ Show full
Sample Request Body Delete multiple certificates by their IDs
Copied!
{
"certificate_ids": [
9007199254741000,
9007199254741008,
9007199254741296
],
"redistribute_profiles": false
}
▼ Show full
Delete certificates and redistribute associated profiles
Copied!
{
"certificate_ids": [
9007199254741000
],
"redistribute_profiles": true
}
▼ Show full
Response Parameters - HTTP code 202 Response Body - application/json Possible Response Codes Sample Response: HTTP 202 Certificates successfully deleted
Copied!
{
"status": true
}
▼ Show full
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.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.