# Remove someone

`POST https://rest.wordplus.cloud/wordplus/realtime/calls/{name}/remove`

Takes someone out of a group call now. The call and room tokens signed for them before do not take them back in: a
token your server signs after does.

In the packages: `realtime.call( name ).remove( user )`.

## Parameters

| Name | In | |
|---|---|---|
| `name` (required) | path | The group call name, percent-encoded: `meeting:7` is `meeting%3A7`. |

## Request

```json
{
  "user": "43"
}
```

## Answer

Whether they were in it.

```json
{
  "ok": true,
  "removed": true
}
```

## Refusals

- **400**: `bad_request`, `bad_room`: the request is not one the API takes. `reserved`: an event name kept for the room itself.
- **401**: `missing_signature`, `stale_signature` (a clock off by more than 5 minutes), `unknown_site`, `bad_signature` (a wrong secret, or a body or path other than the one signed).
- **403**: `not_included`: your plan does not include it.

## Examples

`wordplus()` (in Go `app.Request()`) signs and sends the request: https://docs.wordplus.cloud/api/signing/ has it in each language.

**curl**

```bash
wordplus POST '/wordplus/realtime/calls/meeting%3A7/remove' '{"user":"43"}'
```

**Node**

```js
const { removed } = await wordplus('POST', `/wordplus/realtime/calls/${encodeURIComponent('meeting:7')}/remove`, { user: '43' });
```

**Python**

```python
removed = wordplus("POST", f"/wordplus/realtime/calls/{quote('meeting:7', safe='')}/remove", {"user": "43"})["removed"]
```

**PHP**

```php
$removed = wordplus('POST', '/wordplus/realtime/calls/'.rawurlencode('meeting:7').'/remove', ['user' => '43'])['removed'];
```

**Go**

```go
answer, err := app.Request("POST", "/wordplus/realtime/calls/"+url.PathEscape("meeting:7")+"/remove", map[string]any{"user": "43"})
```

