How to delete k9 data to free memory

I use K9 v6.602 on Android 7 and synchronize my mail with my server (NAS) via IMAP.

According to Android settings, K9 uses over 1GB for data. How can I delete/release it to free memory without deleting the mail accounts?

Can I also delete the data/cache within K9 or only at OS level?

On the internet I keep finding the reference to the menu item “Rebuild data (last option)” - but unfortunately not in my phone.

1 Like

Have you tried limiting the mailbox size and/or limiting the timeframe of mails to be collected?

Thank you for your helpfulness.

Not all folders are synchronised, max. 32 KiB loaded and only 25 mails displayed.

1GB can’t be just the current messages. All mails in the server occupy 3.6 GB. As I keep sending mails with larger attachments and then deleting them, I assume they remain in the memory.

Is there no way to clean up K9 or reset the IMAP accounts?

Otherwise I’ll have to delete the data with Android and then re-import the settings with K9.

You can tell it to compress the account in the settings. That will force K-9 to delete mails that do not match the settings (e.g., you shortened the time from 6 month to 1 month; K-9 will then delete the superfluous mails from the 5 month dropped out of the window). But I doubt that will solve your issue.

1 Like

If you use IMAP then all mails are stored on server and K9 only keeps a local copy. In that case you could try to
Manage folders / folder / 3dot menu / Clear local messages.
This will delete the local copy in that folder and you can fetch the latest N mails from your server again

1 Like

Ah, OK. So I have to do this with each folder, not all at once?

Can I see which folder uses how much space?

I think folder by folder. But only those for which you fetched data. For me it is Inbox, Sent, Trash, Draft

I cleaned up sent because I assumed it was the biggest and it actually freed up 1.2 GB. So, I am satisfied!

Thanks for the help!

2 Likes