# chat.bsky.group.removeMembers

> Published by [bsky-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:4v4y5r3lwsbtmsxhile2ljac)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/chat.bsky.group.removeMembers)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/chat.bsky.group.removeMembers/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4v4y5r3lwsbtmsxhile2ljac/chat.bsky.group.removeMembers/examples)

## Definitions

### `chat.bsky.group.removeMembers`

**Type**: `procedure`

[NOTE: This is under active development and should be considered unstable while this note is here]. Removes members from a group. This deletes convo memberships, doesn't just set a status.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `convoId` | `string` | Yes |  |
| `members` | `array` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `convo` | `ref` → `chat.bsky.convo.defs#convoView` | Yes |  |

#### Errors

- **InvalidConvo**
- **InsufficientRole**

## Raw Schema

```json
{
  "id": "chat.bsky.group.removeMembers",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "convoId",
            "members"
          ],
          "properties": {
            "convoId": {
              "type": "string"
            },
            "members": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "did"
              },
              "minLength": 1
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "InvalidConvo"
        },
        {
          "name": "InsufficientRole"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "convo"
          ],
          "properties": {
            "convo": {
              "ref": "chat.bsky.convo.defs#convoView",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "[NOTE: This is under active development and should be considered unstable while this note is here]. Removes members from a group. This deletes convo memberships, doesn't just set a status."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
