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. Pass permanent=true to permanently delete the conversation and its messages immediately.
Queryparameters
permanent
boolean
Permanently delete the conversation and its messages immediately instead of moving them to the trash.