New answers tagged imap
It seems that this isn't possible at the moment. The support article for Gmail on Android states: [You can] set default action & 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.
Top 50 recent answers are included