# Moves a deployment to the trash for deferred deletion or restoration Used to trash the deployment ## Endpoints `POST /intelligence/api/deployments/{deploymentId}/trash` ## Request URL `https://[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/intelligence/api/deployments/{deploymentId}/trash` ## Scope `DesktopCentralCloud.DEX.CREATE` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` **Mandatory**: `application/deploymentTrash.v1+json` ### Path Parameters - **deploymentId** `string` **Mandatory** ## Sample Request ```curl curl --request POST \ --url https://appdomains/intelligence/api/deployments/{deploymentId}/trash \ --header 'Accept: application/deploymentTrash.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP code 200 #### Response Body — application/json - `JSON Object` - **message** `string`: Confirmation message that the deployment was moved to trash ### Possible Response Codes - **200** `HTTP code` ## Sample Response: HTTP 200 ```json { "message": "Deployment 'Onboarding Deployment' has been moved to trash." } ``` ![ ](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.