Skip to content

Function: deleteThread()

deleteThread(opts): Promise<{ deleted: boolean; }>

Delete a single named thread (and every message on it).

Ownership is enforced: the thread is only removed when it belongs to the calling resource, so a client can’t delete another user’s conversation by guessing its id. A thread that doesn’t exist (or isn’t owned by the caller) is a successful no-op (deleted: false) so the UI can fire-and-forget.

DeleteThreadOptions

Promise<{ deleted: boolean; }>