Disable Gmail app swipe to delete for IMAP account
It seems that this isn't possible at the moment. The support article for Gmail on Android states:


  [You can] set default action &amp; swipe to archive or delete messages for Gmail accounts. For non-Gmail accounts, the default is always delete, so even if you change this setting to archive, your messages will still be deleted.