## Get a content deletion

**get** `/v1/content_deletions/{content_deletion}`

Reads one chat-wide deletion request and its progress. A request belonging to another account, mode or environment answers `404 not_found`.

### Path Parameters

- `content_deletion: string`

### Returns

- `ContentDeletion object { id, before, blocked_reasons, 5 more }`

  A chat-wide deletion request and its progress.

  - `id: string`

    This request's id.

  - `before: string`

    The inclusive cutoff: the id of a message in this chat. The request covers that message and every message before it in the chat's sequence; messages after it, including any that arrive later, are never in range.

  - `blocked_reasons: array of string`

    Why messages are waiting, while `blocked` is above zero: `message_in_flight`, `awaiting_first_delivery` or `content_deletion_busy`. Values may grow.

  - `chat_id: string`

    The chat whose messages the request covers.

  - `completed_at: string`

    When the request completed; null until it has.

  - `counts: object { already_gone, blocked, deleted }`

    Per-message outcomes of one deletion request so far.

    - `already_gone: number`

      Messages whose content was already gone, for example removed by content retention.

    - `blocked: number`

      Messages waiting before their content can be removed. Each resumes on its own.

    - `deleted: number`

      Messages whose stored content this request removed.

  - `created_at: string`

  - `state: string`

    `pending`, `running`, `blocked` or `completed`. A request is never `completed` while a message in its range still has content in our database; stored files, and the channel's copies of files sent or received, can be removed after it completes. `blocked` resumes on its own. Values may grow.

### Example

```http
curl https://whatsapp.messages.api.linqapp.com/v1/content_deletions/$CONTENT_DELETION \
    -H "Authorization: Bearer $LINQ_WHATSAPP_API_KEY"
```

#### Response

```json
{
  "id": "id",
  "before": "before",
  "blocked_reasons": [
    "string"
  ],
  "chat_id": "chat_id",
  "completed_at": "2019-12-27T18:11:19.117Z",
  "counts": {
    "already_gone": 0,
    "blocked": 0,
    "deleted": 0
  },
  "created_at": "2019-12-27T18:11:19.117Z",
  "state": "state"
}
```
