# What happens to Mender artifact after an update?

**URL:** <https://hub.mender.io/t/what-happens-to-mender-artifact-after-an-update/5172>\
**Category:** General Discussions\
**Created:** [August 4, 2022, 5:47pm UTC](https://hub.mender.io/t/what-happens-to-mender-artifact-after-an-update/5172 "2022-08-04T17:47:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mho](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@mho](https://hub.mender.io/u/mho)\
**Post date:** [August 4, 2022, 5:47pm UTC](https://hub.mender.io/t/what-happens-to-mender-artifact-after-an-update/5172/1 "2022-08-04T17:47:02Z")

</div>

Does the Mender Artifact get deleted (including all of its state scripts) after performing a rootfs update? I’m looking into bundling additional artifacts (kernel, etc) into the Mender Artifact’s state scripts, and I’m hoping that they’ll get deleted afterwards so they don’t take additional space.

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [August 10, 2022, 7:35am UTC](https://hub.mender.io/t/what-happens-to-mender-artifact-after-an-update/5172/2 "2022-08-10T07:35:05Z")

</div>

IIRC I believe they are deleted at the next update, not at the end of the current one. So they will always occupy the space of the most recent update, but they won’t accumulate.

---

<div class="post-metadata">

**Author:** ![mho](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@mho](https://hub.mender.io/u/mho)\
**Post date:** [August 25, 2022, 7:33pm UTC](https://hub.mender.io/t/what-happens-to-mender-artifact-after-an-update/5172/3 "2022-08-25T19:33:07Z")

</div>

@kacf to clarify, does this sound correct?  
The main artifact should be streamed into the inactive partition, so isn’t stored anywhere. I’m unclear about what happens with the state scripts though - do they get saved in /var/lib/mender/scripts/?

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [August 26, 2022, 7:01am UTC](https://hub.mender.io/t/what-happens-to-mender-artifact-after-an-update/5172/4 "2022-08-26T07:01:03Z")

</div>

Correct on both counts!
