# Delete multiple IP scopes in a single request Deletes multiple IP scopes identified by their boundary IDs. ## Endpoint `DELETE /dcapi/som/ip-scopes` ## Request URL `https://{server-hostname}:8383/dcapi/som/ip-scopes` ## Scope `SOM.UPDATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** `string` — **Mandatory** `application/ipScopeDetail.v1+json` - **Accept** `string` — **Mandatory** `application/ipScopeDeletedStatus.v1+json` ### Request Body `application/json` - `JSON Object` - **ipScopeIDs** `array` — **Mandatory** Array of IP scope boundary IDs to delete (maximum 1000 per request). Get an IP scope's unique identifier (`boundaryID`) from the [IP Scopes](https://www.manageengine.com/products/desktop-central/help/api/onpremise/ipscopes-list-ipscopes.html) API. ## Sample Request ```curl curl --request DELETE \ --url https://appdomain/dcapi/som/ip-scopes \ --header 'Accept: application/ipScopeDeletedStatus.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/ipScopeDetail.v1+json' \ --data '{"ipScopeIDs":["1","2","3"]}' ``` ### Sample Request Body Delete multiple IP scopes ```json { "ipScopeIDs": [ "1", "2", "3" ] } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - `JSON Object` - **deletedIPScopeIDs** `array` Array of IP scope boundary IDs that were successfully deleted. - **notDeletedIPScopeIDs** `array` Array of IP scope boundary IDs that could not be deleted (e.g., invalid ID or already deleted). - **message** `string` Descriptive message providing details about the bulk delete outcome. - **status** `boolean` Indicates whether the bulk delete operation completed successfully. ### HTTP Code 412 Response Body — `application/json` - `JSON Object` - **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. ## Possible Response Codes - **200** — HTTP code - **412** — HTTP code ## Sample Response: HTTP 200 ### All IP scopes deleted successfully ```json { "deletedIPScopeIDs": [ "1", "2", "3" ], "message": "Selected IP scope(s) were successfully deleted.", "notDeletedIPScopeIDs": [], "status": true } ``` ### Some IP scopes could not be deleted ```json { "deletedIPScopeIDs": [ "1", "2" ], "message": "Selected IP scope(s) were successfully deleted.", "notDeletedIPScopeIDs": [ "123" ], "status": true } ``` ## Sample Response: HTTP 412 ### IP scope IDs list is empty ```json { "errorCode": "30022", "message": "Required IP scope parameters are missing", "statusCode": 412 } ``` ## 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.