Documentation
Sign inGet started

Delete a thread

DELETE
/v1/email/threads/{thread_id}
await bird.email.threads.delete("thr_01abc", { permanent: true });
Moves the conversation and all of its messages to the trash. Trashed messages are permanently deleted after 30 days, or sooner if the mailbox's retention period ends first. Pass permanent=true to permanently delete the conversation and its messages immediately.
Parâmetros de consulta
permanent
boolean
Permanently delete the conversation and its messages immediately instead of moving them to the trash.