> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opigno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove the community member

The community owner or a user associated with `ADMINISTRATOR` scope can remove other community members.

<Note>
  The community owner cannot be removed from the community.
</Note>

In this case community posts and comments, created by the user before, will be presaved and still returned in the
[`getCommunityPosts`](/OpignoEnterpriseAPI/Community/GetCommunityPosts) query results. However, the user will not be able
to create a new posts in the same community.

To remove the community member, `removeCommunityMember` mutation should be executed. It accepts the following arguments:

| Argument          | Type | Description                                                                                                       |
| :---------------- | :--- | :---------------------------------------------------------------------------------------------------------------- |
| `communityId`     | `ID` | **Required**. ID of the community to remove a member from.                                                        |
| `userContextUuid` | `ID` | **Required**. UUID of the context associated with the user who should be removed from the community members list. |

<CodeGroup>
  ```filename GraphQL theme={null}
    mutation removeCommunityMember {
      removeCommunityMember(communityId: 1, userContextUuid: "a1b2c3d4-e5f6-7890-abcd-ef1234567890") {
        response
        errors
      }
    }
  ```

  ```File Query result [expandable] theme={null}
  {
    "data": {
      "removeCommunityMember": {
        "response": true
        "errors": []
      }
    }
  }
  ```
</CodeGroup>

If the mutation executed without any errors, a boolean value will be returned as a response, indicating the execution status.

<Note>
  The user can join the same community again or be invited to this community after they were removed from the members list.
</Note>
