What does expunge do?
Expunge in the context of IMAP: A message can be tagged as deleted. This means that it is in fact NOT deleted yet, but it WILL be deleted when expunging.
This is, kind of, an alternative to the more known generic concept of “trash” where things aren’t really deleted either, just moved to the trash, and fully deleted only when emptying the trash.