# Delete an APD Task Deletes an existing Automated Patch Deployment (APD) task. ## Endpoint [DELETE /dcapi/patch/autopatchdeployment/delete](https://www.manageengine.com/products/desktop-central/help/api/onpremise/patch-delete-apdtask.html) ## Request ### Request URL `https://{server-hostname}:8383/dcapi/patch/autopatchdeployment/delete` ### Scope `PatchMgmt.DELETE` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Body **Content type:** `application/json` - JSON object - **taskName** `string` — **Mandatory** - Name of the APD task to operate on ## Sample Request ```curl curl --request DELETE \ --url https://appdomain/dcapi/patch/autopatchdeployment/delete \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'content-type: application/json' \ --data '{"taskName":"My APD Task"}' ``` ### Sample Request Body Delete by task name ```json { "taskName": "My APD Task" } ``` ## Response Parameters ### HTTP Code 200 **Response body content type:** `application/json` - JSON object - **status** `string` - Action result message (e.g., task has been suspended successfully) ## Possible Response Codes - **200** — HTTP code ## Sample Response: HTTP 200 Task deleted ```json { "status": "Task has been deleted successfully" } ``` ![](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.