> ## 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.

# leaveCommunity

> Leave this community, and every Space in it, as the signed-in member. The
member keeps their account and content and can rejoin later. The removal
finishes in the background. The only Host of the community, or of any Space in
it, cannot leave, and neither can a member with an active paid subscription
until they cancel it.

**Required scope:** `write:memberships`



**mutation** `leaveCommunity(input: LeaveCommunityInput!): LeaveCommunityPayload`

## Arguments

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

Parameters for LeaveCommunity

## Returns

`LeaveCommunityPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

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

---

**`outcome`**: `MembershipOutcome`

## Examples

```graphql Mutation
mutation LeaveCommunity($input: LeaveCommunityInput!) {
  leaveCommunity(input: $input) {
    clientMutationId
    errors
    outcome
  }
}
```

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

```json Response
{
  "data": {
    "leaveCommunity": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "outcome": "ADDED"
    }
  }
}
```


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