When it comes to managing my Gmail account on my BlackBerry Z10, I learned the hard way that it’s not always as simple as it looks. This is especially true as I added my account using the IMAP protocol.
One of the things I didn’t realize is that deleting an e-mail off my device did not act in quite the same manner it had on my BlackBerry Bold 9900. Rather than sending deleting items to the trash, they were archived instead. As you can imagine, suddenly discovering hundreds of items there when logging in via my desktop was not a pleasant sight.
In true CrackBerry fashion I scoured the forums until a workaround was found that would ensure I could delete e-mails without being in front of my computer.
I recommend performing the five swipe gesture to reset the hub after completing the above steps. Be aware it might take a bit for the settings to sync between the server and your device. To avoid a delay when deleting on your BlackBerry 10 device, simply tap on the three dots (overflow menu), and tap on Refresh to make sure everything syncs up properly.
These steps solved my issue and not one message has wound up in the All Mail / Archive folder since modifying those settings. For more information you can check out the Google IMAP advanced control instructions and the forums threads below (of which they are several devoted to this). If, for any reason, you wish to return to the default settings, all of the above steps are reversible.
If you need further help setting up Gmail on your BlackBerry 10 device using IMAP, CalDev or CardDev, be sure to check out Adam's tutorial here.
Please note that by performing the above actions, if you have your Gmail account added to any legacy BBOS smartphone, it will essentially prevent you from sending or receiving mail on that device and cease syncing with the account. I received a notification from BIS alerting me that the All Mail folder is required in order to function properly.