Please check, if the option "Hide in the app, keep on the server" is selected also in the account settings:
> long press on Account name (in account list view) > Options and folders > Account options > Deleting messages > choose the third option "Hide in the app, keep on the server"