---
title: "DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}"
method: DELETE
path: "/deviceUpdate/{instanceId}/management/groups/{groupId}"
tags: ["Device and deployment management"]
---

# DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}

`DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}`

Deletes a device group. This group is automatically created when a Device
Update-enabled device is connected to the hub and reports its properties.
Groups, subgroups, and deployments are not automatically cleaned up but are
retained for history purposes. Users can call this method to delete a group if
they do not need to retain any of the history of the group and no longer need
it. If a device is ever connected again for this group after the group was
deleted it will be automatically re-created but there will be no history.

## Path parameters

- `instanceId` string, required
- `groupId` string, required

## Query parameters

- `api-version` string, required

## Response `204`

There is no content to send for this request, but the headers may be useful.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/deviceupdate-microsoft-deviceupdate.md) · [All operations](https://skmtc.net/azure/apis/deviceupdate-microsoft-deviceupdate/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/deviceupdate-microsoft-deviceupdate/versions/ceb0ecac6c82/schema)
