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

# deleteCommunityMembership

> Remove a member from the community. This is rejoinable — the member keeps
their content and can rejoin the community later.

**Required scope:** `host:write:network_members`



**mutation** `deleteCommunityMembership(input: DeleteCommunityMembershipInput!): DeleteCommunityMembershipPayload`

## Arguments

**`input`**: `DeleteCommunityMembershipInput!` (required)

Parameters for DeleteCommunityMembership

## Returns

`DeleteCommunityMembershipPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`errors`**: `[String!]!`

---

**`member`**: `Member`

## Examples

```graphql Mutation
mutation DeleteCommunityMembership($input: DeleteCommunityMembershipInput!) {
  deleteCommunityMembership(input: $input) {
    clientMutationId
    errors
    member {
      ambassadorLevel
      ambassadorLevelId
      avatarUrl
      badges {
        avatarUrl
        color
        createdAt
        creator {
          __typename
        }
        customField {
          __typename
        }
        description
      }
      communityRole
      conversations {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "id": "id"
  }
}
```

```json Response
{
  "data": {
    "deleteCommunityMembership": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "member": {
        "ambassadorLevel": "string",
        "ambassadorLevelId": 1,
        "avatarUrl": "string",
        "badges": [
          {
            "avatarUrl": "string",
            "color": "string",
            "createdAt": "value",
            "creator": {
              "__typename": "User"
            },
            "customField": {
              "__typename": "CustomField"
            },
            "description": "string"
          }
        ],
        "communityRole": "CONTRIBUTOR",
        "conversations": {
          "edges": [
            {
              "__typename": "PublicConversationEdge"
            }
          ],
          "nodes": [
            {
              "__typename": "Space"
            }
          ],
          "pageInfo": {
            "__typename": "PublicConversationPageInfo"
          }
        }
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.