Is there a way to tell which messages were deleted from a folder since a certain timestamp?

I know I can find which messages are modified or created but was wondering if there is a way to list deleted ids by folder.

In particular how does a web mail client know how to remove messages from the Inbox. One way would be to get all messages and compare which ones are missing from it's internal list. The other way would be to get the list of deleted ids either from a session or SyncRequest.

Any ideas how current web clients would be appreciated.