Which tables are cleaned after deleting raw logs?

I want to know which tables are deleted in this process. I try to keep Matomo database as small as possible, since currently (without deleting raw logs) the size exceeds 400GB.