# Retrieves the current auto-update package cleanup policy configuration Fetches whether cleanup is enabled, how many recent packages to retain, and the maximum days before archived packages are permanently deleted. ## Endpoints `GET /dcapi/swDeployment/getPackageCleanupSettingDetails` ## Request URL `https://{serverurl}/dcapi/swDeployment/getPackageCleanupSettingDetails` ## Scope `DesktopCentralCloud.SWDeployment.READ` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` **Mandatory**: `application/PackageCleanupSettingDetails.v1+json` ## Sample Request ```curl curl --request GET \ --url https://appdomains/dcapi/swDeployment/getPackageCleanupSettingDetails \ --header 'Accept: application/PackageCleanupSettingDetails.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP code 200 Response Body — `application/json` `JSON Object` - **isEnableAutoUpdateCleanup** `boolean`: true if auto-update package cleanup is enabled - **noOfRecentAutoUpdatePkgs** `integer`: Number of recent auto-update package versions to retain per software (2-8) - **maxDaysForAllArchivePkg** `integer`: Maximum days to retain archived packages before permanent deletion ### HTTP code 500 Response Body — `application/json` `JSON Object` - **errorCode** `string`: SW_INTERNAL_ERROR for cleanup settings failures, INTERNAL_ERROR for restore operation errors - **errorMessage** `string`: Internal server error with details about the cleanup policy or archive restore failure ## Possible Response Codes - **200** HTTP code - **500** HTTP code ## Sample Response: HTTP 200 ### Cleanup enabled ```json { "noOfRecentAutoUpdatePkgs": 3, "maxDaysForAllArchivePkg": 90, "isEnableAutoUpdateCleanup": true } ``` ### Cleanup disabled ```json { "noOfRecentAutoUpdatePkgs": 2, "maxDaysForAllArchivePkg": 90, "isEnableAutoUpdateCleanup": false } ``` ## Sample Response: HTTP 500 ### Server error ```json { "errorMessage": "Internal Server Error", "errorCode": "SW_INTERNAL_ERROR" } ``` ![](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.