# Delete a file with Update Module

**URL:** <https://hub.mender.io/t/delete-a-file-with-update-module/6818>\
**Category:** General Discussions\
**Created:** [May 13, 2024, 2:12pm UTC](https://hub.mender.io/t/delete-a-file-with-update-module/6818 "2024-05-13T14:12:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjsteele](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jjsteele](https://hub.mender.io/u/jjsteele)\
**Post date:** [May 13, 2024, 2:12pm UTC](https://hub.mender.io/t/delete-a-file-with-update-module/6818/1 "2024-05-13T14:12:01Z")

</div>

What is the correct way to delete an unwanted file?

John

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [May 13, 2024, 7:25pm UTC](https://hub.mender.io/t/delete-a-file-with-update-module/6818/2 "2024-05-13T19:25:07Z")

</div>

Hi @jjsteele,

Semi-serious, but correct answer: not shipping it in the first place.  
Semi-correct, but serious answer: use the `script` Update Module, or the remote terminal of the Troubleshoot Addon if its just a specific device.

Greets,  
Josef
