Delete a message's content
Deletes one message’s content from what Linq stores, and normally a received file’s copy at the provider; it does not unsend the message, the customer’s device keeps its copy, and the provider keeps its own copy of the message text.
A 204 means the message no longer appears on any read (the transcript,
the event log, the event stream and replays omit it) and its content is
gone from our database. Stored files it referenced are removed shortly
after, except a file another message, template or carousel still uses,
which stays until its last use ends. A file the customer sent is then
also deleted at the channel, normally within minutes. That is possible
only while the channel’s id for the file lasts, 7 days after it
arrived: a file older than that, one whose number or account has since
left this service, one whose content retention removed before your delete,
one whose id another received file still shares past those 7 days, or
one the channel has not confirmed deleted by then is left to the
channel’s own retention. Media this service sent is
removed from the channel once delivery is confirmed, and otherwise when
the channel expires it (up to 30 days). Linq cannot delete the
channel’s stored copy of a message’s text (kept there for up to 30
days) or recall a sent message, and the customer’s device keeps what it
received.
Content already on its way to your endpoint may still arrive.
Kept: metadata, delivery and billing records, and the customer’s identifier. This is not data-subject erasure.
Deleting a message already deleted answers 204 again, under a
new Idempotency-Key, and so does a message whose content retention already
removed. A message that never existed answers 404 not_found. A send retried with the
original send’s own key still answers 202 with empty parts and never
sends again.
A message whose send is still being handed to the channel
(message_in_flight), an incoming message whose first event to you is
still being delivered (awaiting_first_delivery: every delivery of it
has to succeed or fail for good first, so a failing endpoint delays the
deletion and a hold on delivery delays it), or a chat momentarily busy
(content_deletion_busy) answers 409 with Retry-After. Nothing is
recorded against the Idempotency-Key for a 409, so the same request with
the same key after the wait is a fresh attempt. Idempotency-Key is
required; reusing it for a different deletion answers
409 idempotency_conflict.
Delete a message's content
curl https://whatsapp.messages.api.linqapp.com/v1/messages/$MESSAGE \
-X DELETE \
-H "Authorization: Bearer $LINQ_WHATSAPP_API_KEY"