Delete a Device Group
delete
/rest/{versionId}/inventory/deviceMgmt/deviceGroups/{groupId}
Use the (DELETE) method to delete device groups from Device Manager. Only device groups that have no children can be deleted.
Request
Path Parameters
Back to Top
Response
400 Response
The user input is invalid.
401 Response
The session ID is invalid.
404 Response
The object (resource URI, device, and so on) of your input request cannot be found.
Examples
The following example shows how to delete the specified device group by submitting a DELETE request on the REST resource using cURL. For more information about cURL, see Use cURL
Example of cURL Data
The following shows an example of cURL data sent with the request.
curl -v -b sessionid.txt -X DELETE -H"Content-Type: application/xml" -H"Accept: application/xml" http://localhost:8080/rest/v1.1/inventory/deviceMgmt/deviceGroups/ID24
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 204 No Content Date: Tue, 19 Sep 2017 15:06:46 GMT Server: Apache X-Frame-Options: SAMEORIGIN