# Delete audience

`opensend.audiences.remove(id)`

Deletes an audience. Its contacts stay in the workspace and in their other audiences.

Needs the scope: `audiences:write`

## Input

`id` goes first, on its own, and the rest in one object. One object that holds `id` works too.

- `id` (string, required): The id of the item. Up to 64 characters.

## Returns

The call resolves to the answer, already parsed. A call the API refuses throws `OpenSendError` with the code and the message of the answer. [SDK](https://opensend.sh/docs/sdk) lists the errors of the client itself.

- `object` (string): What kind of thing was removed. One of: `list`, `email`, `broadcast`, `audience`, `template`, `template_version`, `template_starter`, `automation`, `metrics`, `domain`, `api_key`, `webhook`, `log`, `workspace`, `member`, `method`, `account`, `inbound_email`, `webhook_delivery`, `contact`, `plan`, `checkout`, `invoice`, `ask_answer`, `suppression`, `chat`, `automation_run`, `event`, `event_receipt`, `import`, `import_inventory`, `topic`, `contact_property`, `image`, `server`.
- `id` (string): The id of what was removed.
- `deleted` (true): Always `true`: it is gone for good.

## Example

TypeScript:

```ts
await opensend.audiences.remove('aud_03')
```

CLI:

```bash
opensend audiences remove aud_03
```

Answer:

```json
{
  "object": "audience",
  "id": "aud_03",
  "deleted": true
}
```
