# IRPCDocClassGroupsAdmin.RemoveDocClassGroup

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Class groups](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDocClassGroupsAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDocClassGroupsAdmin/RemoveDocClassGroup/

Badges: `Administration API / specialized` `admin` `session`

Deletes a class group.

- **Service:** [Class groups](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDocClassGroupsAdmin/index.md) `MFiles.IRPCDocClassGroupsAdmin`
- **gRPC method:** `/MFiles.IRPCDocClassGroupsAdmin/RemoveDocClassGroup`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/remove-doc-class-group`
- **Request:** [`RemoveDocClassGroupRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDocClassGroupsAdmin/RemoveDocClassGroup/index.md#request)
- **Response:** [`RemoveDocClassGroupResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDocClassGroupsAdmin/RemoveDocClassGroup/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires `change_metadata_structure` and `license_allows_modifications`, and read access to the
  group.
- The member classes are not deleted. Existing documents of those classes are updated so that
  they no longer refer to the group.
- Increments the metadata structure version.

<a id="request"></a>

## Request: RemoveDocClassGroupRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `id` | `int32` | The ID of the class group to delete. |

<a id="response"></a>

## Response: RemoveDocClassGroupResponse

No fields.
