# Delete a replication policy Permanently deletes a replication policy by ID. ## Endpoints `DELETE /dcapi/som/replication-policies/{replication_policy_id}` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/som/replication-policies/{replication_policy_id}` ### Scope `SOM.DELETE` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** (`string`, Mandatory): `application/replicationPolicyDeletedStatus.v1+json` #### Path Parameters - **replication_policy_id** (`string`, Mandatory): Unique identifier of the replication policy. Get the replication policy ID from the [Replication Policies](https://www.manageengine.com/products/desktop-central/help/api/onpremise/replication-policies-list-replication-policies.html) API response (`replicationPolicyID`). ### Sample Request #### Curl ```curl curl --request DELETE \ --url https://appdomain/dcapi/som/replication-policies/{replication_policy_id} \ --header 'Accept: application/replicationPolicyDeletedStatus.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response ### HTTP 200 #### Response Body `application/json` - **status** (`boolean`): Indicates whether the replication policy update or deletion completed successfully. - **message** (`string`): Descriptive message confirming the operation or explaining the reason for failure (e.g., 'Replication policy - Business Hours Only has been updated successfully'). #### Sample Response Policy deleted ```json { "message": "Replication policy - Business Hours Only has been deleted successfully", "status": true } ``` ### HTTP 404 #### Response Body `application/json` - **statusCode** (`string`): HTTP status code (404). - **errorCode** (`string`): Error code identifying the resource that was not found. - **message** (`string`): Error message describing the missing resource. #### Sample Response Replication policy not found ```json { "errorCode": "30027", "message": "Replication policy does not exist", "statusCode": 404 } ``` ### HTTP 412 #### Response Body `application/json` - **statusCode** (`string`): HTTP status code (412). - **errorCode** (`string`): Precondition failed error code identifying the business logic violation. - **message** (`string`): Error message describing the precondition failed while processing request. #### Sample Response Policy is associated with remote offices ```json { "errorCode": "30026", "message": "Cannot delete policy. It is associated with one or more remote offices", "statusCode": 412 } ``` ### Possible Response Codes - `200` HTTP code - `404` HTTP code - `412` HTTP code ## 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.