DELETE/inboxes/{inbox_id}/threads/{thread_id}

Move an inbox thread to trash

Moves a thread to the trash folder and schedules it for deletion in 30 days. The move is reversible; update the thread’s folder to inbox, archive, or spam to restore it and clear the deletion deadline.

2 parameters
inbox_idstringrequired
The UUID of the inbox containing the thread. An email address is not accepted.
thread_idstringrequired
The UUID of the thread to move to trash.

1 status code
200Returns the thread ID and a `deleted` value that is true if this call moved the thread to `trash`, or false if it was already there.
objectstringrequired
The object type.
idstringrequired
The ID of the thread.
deletedbooleanrequired
True when this call moved the thread to `trash`. False when the thread was already there.

Error handling

The inbox_id path parameter and thread_id path parameter must be UUIDs identifying the target inbox and thread.