Skip to content
Linq Copy agent prompt

Content Deletions

Get a content deletion
GET/v1/content_deletions/{content_deletion}
ModelsExpand Collapse
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.

formatdate-time
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.

formatint64
blocked: number

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

formatint64
deleted: number

Messages whose stored content this request removed.

formatint64
created_at: string
formatdate-time
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.