# Is there any way to remove the cached attachments from Mailspring?

**URL:** <https://community.getmailspring.com/t/is-there-any-way-to-remove-the-cached-attachments-from-mailspring/3971>\
**Category:** Help\
**Created:** [February 15, 2022, 6:56pm UTC](https://community.getmailspring.com/t/is-there-any-way-to-remove-the-cached-attachments-from-mailspring/3971 "2022-02-15T18:56:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorgefsoriano](https://community.getmailspring.com/user_avatar/community.getmailspring.com/jorgefsoriano/32/1901_2.png) [@jorgefsoriano](https://community.getmailspring.com/u/jorgefsoriano)\
**Post date:** [February 15, 2022, 6:56pm UTC](https://community.getmailspring.com/t/is-there-any-way-to-remove-the-cached-attachments-from-mailspring/3971/1 "2022-02-15T18:56:31Z")

</div>

Mailspring seems to store email attachments under (in Linux, Debian) ~/.config/Mailspring/files. It seems that files stay there even after emails are deleted and also after using “Reset Cache” under the “Local Data” section in the “General” tab of the Preferences.

Is there a way to remove the unnecessary files from within Mailspring?

Extra question: Wouldn’t this be the desired behavior of the Local Data/Reset Cache option?

---

<div class="post-metadata">

**Author:** ![bengotow](https://community.getmailspring.com/user_avatar/community.getmailspring.com/bengotow/32/14_2.png) [@bengotow](https://community.getmailspring.com/u/bengotow)\
**Post date:** [September 18, 2026, 1:52am UTC](https://community.getmailspring.com/t/is-there-any-way-to-remove-the-cached-attachments-from-mailspring/3971/2 "2026-09-18T01:52:53Z")

</div>

You’ve read it right: **Reset Cache** deletes only the mail database (`edgehill.db`) and leaves `~/.config/Mailspring/files` alone, and the sync engine never prunes that folder on its own — it only expires old message _bodies_ from the database, not the attachment files that came with them. `files/` grows until you clear it yourself.

Safe way to reclaim the space: quit Mailspring completely (including the tray icon), delete the `files` folder, then start Mailspring and run Preferences \> General \> **Reset Cache** (or **Rebuild Cache…** on the individual account under Preferences \> Accounts). Doing both together matters: if you delete `files/` on its own, messages whose bodies are already cached won’t re-download their attachments, and opening one will fail until that message is re-fetched. Resetting the cache re-downloads bodies and attachments consistently for recent mail.

And I agree Reset Cache should probably clear the attachment folder as part of the job. Docs for the cache options are here: [Clearing the Mailspring cache — Mailspring Documentation](https://getmailspring.com/docs/clearing-mailspring-cache)
