I don’t have a ymail account, it is the address of the other person, so it is in my eM Client
If the greyed out Ymail Contact is only in eM Client and you cannot delete it, then try manually running the repair on the database with eM Client closed.
Before running the repair make a manual backup via “Menu / Backup” incase you need to restore for any reason. You can see when the backup is complete in Show Operations via the dropdown on the right of Refresh.
To manually repair eM Client database for Windows see @Gary link below.
https://forum.emclient.com/t/email-message-that-cannot-be-deleted/86994/2
To manually repair eM Client database for Mac see @Gary link below.
https://forum.emclient.com/t/email-message-that-cannot-be-deleted/86994/6