# Delete Contact Audience

Deletes a saved contact audience; the contacts stay, only the saved search is gone, with no undo. Refused while a newsletter not yet sent addresses it -- that newsletter would go to nobody --; give it another audience first. Sent newsletters keep their statistics. Pass confirm=true only when the user asked to delete this audience.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "audienceId": {
      "type": "integer",
      "description": "ID of the audience to delete",
      "minimum": 1
    },
    "confirm": {
      "type": "boolean",
      "description": "true only when the user asked to delete this audience",
      "default": false
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account of the access token",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "audienceId"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "audienceId",
    "name"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "audienceId": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    }
  }
}
```

