powered by
Function to trash a given thread by id. This can be undone by untrash_thread.
untrash_thread
trash_thread(id, user_id = "me")
thread id to access
gmail user_id to access, special value of 'me' indicates the authenticated user.
https://developers.google.com/gmail/api/v1/reference/users/threads/trash
Other thread: delete_thread, modify_thread, threads, thread, untrash_thread
delete_thread
modify_thread
threads
thread
# NOT RUN { trash_thread(12345) # }
Run the code above in your browser using DataLab