# Notes containing attachments. Notes are deleted. How to delete all attachments/cached images of deleted notes easily?

**URL:** <https://discourse.joplinapp.org/t/notes-containing-attachments-notes-are-deleted-how-to-delete-all-attachments-cached-images-of-deleted-notes-easily/9380>\
**Category:** Support\
**Created:** [14 June 2020 02:08 UTC](https://discourse.joplinapp.org/t/notes-containing-attachments-notes-are-deleted-how-to-delete-all-attachments-cached-images-of-deleted-notes-easily/9380 "2020-06-14T02:08:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![StonefaceTerminal](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/stonefaceterminal/32/4201_2.png) [@StonefaceTerminal](https://discourse.joplinapp.org/u/StonefaceTerminal)\
**Post date:** [14 June 2020 02:08 UTC](https://discourse.joplinapp.org/t/notes-containing-attachments-notes-are-deleted-how-to-delete-all-attachments-cached-images-of-deleted-notes-easily/9380/1 "2020-06-14T02:08:45Z")

</div>

Hi all,

Hope you’re able to point me in the right direction on how to achieve this!

**Scenario:**

1. Note A is created with attached images X
2. Note B is created with attached images Y
3. Note A is deleted
4. Note B is deleted
5. Note C is created with attach image Z

**Question:**

- How do we bulk delete the all images from deleted notes (i.e. delete images X, Y but NOT images Z) under JoplinProfile\resources **gracefully from the app frontend**?

**Note:**

- I’m aware Tools -\> Note Attachments is possible, however this lists all images

Thank you!

---

<div class="post-metadata">

**Author:** ![joeschmoe](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/joeschmoe/32/9127_2.png) [@joeschmoe](https://discourse.joplinapp.org/u/joeschmoe)\
**Post date:** [14 June 2020 19:01 UTC](https://discourse.joplinapp.org/t/notes-containing-attachments-notes-are-deleted-how-to-delete-all-attachments-cached-images-of-deleted-notes-easily/9380/2 "2020-06-14T19:01:38Z")

</div>

> [@Are images deleted if they are no longer included in any note?](https://discourse.joplinapp.org/t/are-images-deleted-if-they-are-no-longer-included-in-any-note/4608/16):
>
> The problem is that I do not know, if the API actually takes the history into account either. This is something only @laurent would know - or someone who worked at the note history code.

---

<div class="post-metadata">

**Author:** ![StonefaceTerminal](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/stonefaceterminal/32/4201_2.png) [@StonefaceTerminal](https://discourse.joplinapp.org/u/StonefaceTerminal)\
**Post date:** [15 June 2020 00:06 UTC](https://discourse.joplinapp.org/t/notes-containing-attachments-notes-are-deleted-how-to-delete-all-attachments-cached-images-of-deleted-notes-easily/9380/3 "2020-06-15T00:06:01Z")

</div>

Thanks for posting that Joe, I’m now following the bug via [https://github.com/laurent22/joplin/issues/932](https://github.com/laurent22/joplin/issues/932)
