# ejectGroupMember

Ejects residents from the group.

```javascript
Bot.ejectGroupMember(avatar, groupuuid);
```

```snippet playground-input-2k8u0pPON3
`avatar`    | yes | The UUID of the resident
`groupuuid` | yes | The UUID of the group
```

## Output

Function returns a Promise with the following data:

| Variable | Type | Description |
|----------|------|-------------|
| `success` | bool | True if command completed successfully |
| `error`  | string | Error string if command has failed |

## Comments

If you are using a custom role (other than "Everyone") you need additional abilities for your bot. [Read this](/doc/4cb0e17a-9a3c-434f-b0bf-934091057184) for details.