# Working with / cleaning up images

**URL:** <https://community.homey.app/t/working-with-cleaning-up-images/110223>\
**Category:** Developers\
**Created:** [May 21, 2024, 1:45pm UTC](https://community.homey.app/t/working-with-cleaning-up-images/110223 "2024-05-21T13:45:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emiliano\_Quetimporta](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/emiliano_quetimporta/32/73402_2.png) [@Emiliano\_Quetimporta](https://community.homey.app/u/Emiliano_Quetimporta)\
**Post date:** [May 21, 2024, 1:45pm UTC](https://community.homey.app/t/working-with-cleaning-up-images/110223/1 "2024-05-21T13:45:24Z")

</div>

Hi, I’m using the ManagerImages but clearly the wrong way.

My apps constantly create new images with ManagerImages.createImage() but the images live forever in Homey. Is there a best practice to do this? Is there also a way to delete old images?

See this issue of one of my apps here:

> [@\[App\]\[Pro\] Playstation](https://community.homey.app/t/app-pro-playstation/105966/103):
>
> @Emiliano_Quetimporta just playing a bit of Fallout 4. Notice that now I have couple of hundred of images in homey:app:com.emi.playstationnetwork. Seems a bit much. Or probably not the image itself but a referal of some kind(url from one of them: [https://psnobj.prod.dl.playstation.net/psnobj/NPWR31904\_00/59b0d24c-42db-4fe3-9615-18d1f0b10b49.png](https://psnobj.prod.dl.playstation.net/psnobj/NPWR31904_00/59b0d24c-42db-4fe3-9615-18d1f0b10b49.png)) For reference: the sidebar to scroll down is visible. The last picture is also from Fallout 4 (and nothing else in between)

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [May 21, 2024, 2:12pm UTC](https://community.homey.app/t/working-with-cleaning-up-images/110223/2 "2024-05-21T14:12:44Z")

</div>

> [@Emiliano\_Quetimporta](#):
>
> My apps constantly create new images with ManagerImages.createImage() but the images live forever in Homey.

They will disappear when app got restarted.

> [@Emiliano\_Quetimporta](#):
>
> Is there also a way to delete old images?

> **[ManagerImages - Homey Apps SDK v3](https://apps-sdk-v3.developer.homey.app/ManagerImages.html#unregisterImage)**

---

<div class="post-metadata">

**Author:** ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)\
**Post date:** [May 21, 2024, 2:14pm UTC](https://community.homey.app/t/working-with-cleaning-up-images/110223/3 "2024-05-21T14:14:25Z")

</div>

> [@Sharkys](#):
>
> They will disappear when app got restarted.

Hope restarting the app after every game will not be the solution 🤔

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [May 21, 2024, 2:40pm UTC](https://community.homey.app/t/working-with-cleaning-up-images/110223/4 "2024-05-21T14:40:22Z")

</div>

I was just reacting to

> [@Emiliano\_Quetimporta](#):
>
> the images live forever in Homey

🙂

---

<div class="post-metadata">

**Author:** ![ChrisG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrisg/32/8825_2.png) [@ChrisG](https://community.homey.app/u/ChrisG)\
**Post date:** [May 21, 2024, 3:18pm UTC](https://community.homey.app/t/working-with-cleaning-up-images/110223/5 "2024-05-21T15:18:52Z")

</div>

I have done it this way and only have one image (album art) per device which is changed again and again.

Chris

> <https://github.com/cgHome/homey.wiim/blob/fc7729063154bda6cc25ba6dd62fd136327645af/drivers/player/device.js#L35>

> <https://github.com/cgHome/homey.wiim/blob/fc7729063154bda6cc25ba6dd62fd136327645af/drivers/player/device.js#L232>
