---
title: "DELETE /mr-api/group/{gid}/person/{pId}"
method: DELETE
path: "/mr-api/group/{gid}/person/{pId}"
tags: ["GroupService"]
---

# DELETE /mr-api/group/{gid}/person/{pId}

`DELETE /mr-api/group/{gid}/person/{pId}`

Remove a person from a group

## Response `200`

Resulting group

- Group
  - `createdBy` Person
    - `id` PersonId
      - `id` string, uuid, required
    - `name` string
    - `email` string, email
    - `personType` 'person' | 'serviceAccount' | 'sdkServiceAccount'
    - `other` string
    - `source` string
    - `version` integer
    - `passwordRequiresReset` boolean
    - `groups` Group[]
    - `whenArchived` string, date-time
    - `whenLastAuthenticated` string, date-time — This is the timestamp in UTC when they last logged into the system
    - `whenLastSeen` string, date-time — This is the timestamp in UTC when they last made a request to the system on their most recent login. If it is null it means they have no current token or have never logged in.
    - `additional` PersonInfo[]
      - `key` string, required — e.g. serviceAccountId
      - `value` string, required
  - `updatedBy` Person
    - `id` PersonId
      - `id` string, uuid, required
    - `name` string
    - `email` string, email
    - `personType` 'person' | 'serviceAccount' | 'sdkServiceAccount'
    - `other` string
    - `source` string
    - `version` integer
    - `passwordRequiresReset` boolean
    - `groups` Group[]
    - `whenArchived` string, date-time
    - `whenLastAuthenticated` string, date-time — This is the timestamp in UTC when they last logged into the system
    - `whenLastSeen` string, date-time — This is the timestamp in UTC when they last made a request to the system on their most recent login. If it is null it means they have no current token or have never logged in.
    - `additional` PersonInfo[]
      - `key` string, required — e.g. serviceAccountId
      - `value` string, required
  - `whenCreated` string, date-time
  - `whenUpdated` string, date-time
  - `id` string, uuid
  - `admin` boolean — is this an admin group?
  - `portfolioId` string, uuid
  - `organizationId` string, uuid — this will be the organisation this group belongs to at the top level, or if a portfolio group, the organisation of the portfolio
  - `version` integer
  - `name` string, required
  - `members` Person[]
    - `id` PersonId
      - `id` string, uuid, required
    - `name` string
    - `email` string, email
    - `personType` 'person' | 'serviceAccount' | 'sdkServiceAccount'
    - `other` string
    - `source` string
    - `version` integer
    - `passwordRequiresReset` boolean
    - `groups` Group[]
    - `whenArchived` string, date-time
    - `whenLastAuthenticated` string, date-time — This is the timestamp in UTC when they last logged into the system
    - `whenLastSeen` string, date-time — This is the timestamp in UTC when they last made a request to the system on their most recent login. If it is null it means they have no current token or have never logged in.
    - `additional` PersonInfo[]
      - `key` string, required — e.g. serviceAccountId
      - `value` string, required
  - `applicationRoles` ApplicationGroupRole[]
    - `applicationId` string, uuid, required
    - `groupId` string, uuid, required
    - `roles` ApplicationRoleType[], required
  - `environmentRoles` EnvironmentGroupRole[]
    - `environmentId` string, uuid, required
    - `groupId` string, uuid, required
    - `roles` RoleType[], required
  - `whenArchived` string, date-time

## Other responses

- `400` — Bad Request
- `401` — no permission
- `403` — forbidden
- `404` — not found

---

[API](https://skmtc.net/featurehub-io/apis/managementresourceapi.md) · [All operations](https://skmtc.net/featurehub-io/apis/managementresourceapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/featurehub-io/managementresourceapi/versions/faed5fd616c3/schema)
