## DeleteGroup **post** `/gitpod.v1.GroupService/DeleteGroup` Deletes a group and removes all its resource assignments. When a group is deleted, all resource assignments revert to org-level scope. Use this method to: - Remove unused groups - Clean up after team reorganization ### Examples - Delete a group: Permanently removes a group. ```yaml groupId: "d2c94c27-3b76-4a42-b88c-95a85e392c68" ``` ### Authorization Requires `org:admin` role on the organization. ### Body Parameters - `groupId: optional string` ### Example ```http curl https://app.gitpod.io/api/gitpod.v1.GroupService/DeleteGroup \ -H 'Content-Type: application/json' \ -H "Authorization: Bearer $GITPOD_API_KEY" \ -d '{}' ``` #### Response ```json {} ```