Currently there is no trigger based on a logout event.
I think you have 2 options :
- Have a scheduled trigger to periodically query users that are logout and delete them.
- On logout client
logic insert a document to a collection and build a special database trigger to delete this user id.
Best
Pavel