# Delete one or more user-defined templates Permanently deletes the specified configuration templates. This action is irreversible. ## Endpoints `DELETE /dcapi/configuration/template` ## Request ### Request URL `https://[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/dcapi/configuration/template` ### Scope `DesktopCentralCloud.Common.DELETE` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Content-Type** `string` — **Mandatory**: `application/deleteTemplate.v1+json` - **Accept** `string` — **Mandatory**: `application/deleteTemplateStatus.v1+json` #### Request Body `application/json` - `JSON Object` - **templateIds** `array` — Optional: Array of template IDs to delete. Each must be a valid user-defined template belonging to the requesting customer. Maximum 500 entries. ### Sample Request ```curl curl --request DELETE \ --url https://appdomains/dcapi/configuration/template \ --header 'Accept: application/deleteTemplateStatus.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/deleteTemplate.v1+json' \ --data '{}' ``` ### Sample Request Body Delete multiple configuration templates ```json { "templateIds": [ 1001, 1002, 1003 ] } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - `JSON Object` - **status** `string`: Result of the delete templates operation - **deletedCount** `string`: Number of templates successfully deleted ### HTTP Code 400 Response Body — `application/json` - `JSON Object` - **error_code** `string`: BAD_REQUEST: template IDs are invalid, belong to another customer, or are system templates that cannot be deleted - **error_description** `string`: Message describing the template validation failure ### HTTP Code 401 Response Body — `application/json` - `JSON Object` - **errorCode** `long`: Unauthorized error code: credentials missing, expired, or invalid - **errorMsg** `string`: Authentication failure reason ### Possible Response Codes - `200` — HTTP code - `400` — HTTP code - `401` — HTTP code ### Sample Response: HTTP 200 Templates deleted successfully ```json { "deletedCount": 3, "status": "Success" } ``` ### Sample Response: HTTP 400 Template IDs are invalid or belong to another customer ```json { "error_description": "Invalid template IDs or templates belong to another customer", "error_code": "BAD_REQUEST" } ``` ### Sample Response: HTTP 401 User lacks write role or attempting to delete system templates ```json { "error_description": "Access denied - You are not allowed to access the requested resource.", "error_code": "UAC_UNAUTHORIZED" } ``` ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **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.