Cannot delete emails from Trash folder

when trying to deleter emails from Trash (IMAP) emails keep reappearing.
This is the delete sequence in the logs…

09:19:37.174|02D| >>> DeleteAsync(folder: /Gelöschte Elemente [Trash], items: 31689): Start
09:19:37.174|02D| >>> DeleteAsync(): Server has UIDPLUS capability
09:19:37.174|02D| 01: — CMD UID STORE: CONNECTION IS IDLING
09:19:37.174|02D| 01: DONE
09:19:37.186|02D| 01: A20 OK Idle completed (1.302 + 1.299 + 1.301 secs).
09:19:37.186|02D| 01: — CMD UID STORE: IDLING TERMINATED
09:19:37.186|02D| 01: A21 UID STORE 31689 +FLAGS.SILENT (\Deleted)
09:19:37.493|02D| 01: * 803 FETCH (UID 31689 MODSEQ (14186))
09:19:37.493|02D| 01: A21 OK Store completed (0.304 + 0.000 + 0.303 secs).
09:19:37.493|02D| >>> SynchronizeFolderFastAsync(folder: /Gelöschte Elemente [Trash]): New FETCH received
09:19:37.493|02D| 01: A22 UID EXPUNGE 31689
09:19:37.495|02D| 01: A22 OK Expunge completed (0.001 + 0.000 secs).
09:19:37.496|02D| 01: A23 NOOP
09:19:37.498|02D| 01: A23 OK NOOP completed (0.001 + 0.000 secs).
09:19:37.498|02D| 01: A24 UID STORE 31689 -FLAGS.SILENT (\Deleted)
09:19:37.731|02D| 01: * 803 FETCH (UID 31689 MODSEQ (14187))
09:19:37.731|02D| 01: A24 OK Store completed (0.231 + 0.000 + 0.230 secs).
09:19:37.732|02D| >>> SynchronizeFolderFastAsync(folder: /Gelöschte Elemente [Trash]): New FETCH received
09:19:37.732|02D| >>> DeleteAsync(): ERROR - expunge failed, searching for remaining uids to validate server state…
09:19:37.732|02D| 01: A25 UID SEARCH RETURN (ALL) UID 31689 UNDELETED
09:19:37.734|02D| 01: * ESEARCH (TAG “A25”) UID ALL 31689
09:19:37.734|02D| 01: A25 OK Search completed (0.001 + 0.000 secs).
09:19:37.734|02D| >>> DeleteAsync(): End

when trying to deleter emails from Trash (IMAP) emails keep reappearing.

If you have Windows see the below post from @Gary in the following thread.

https://forum.emclient.com/t/item-cannot-be-delete-from-trash/95660/2

Or if you have a Mac, “close eM Client” and open a Terminal and paste in this command & enter.

/Applications/eM\ Client.app/Contents/MacOS/eM\ Client /dbrepair

When that is done, reopen eM Client as see if you still have the issue.