# \[file upload\] delete physical uploaded file when deleting client-side from the control

**URL:** <https://forum.dotvvm.com/t/file-upload-delete-physical-uploaded-file-when-deleting-client-side-from-the-control/178>\
**Category:** Discussion in English\
**Tags:** business-pack\
**Created:** [March 19, 2024, 1:40pm UTC](https://forum.dotvvm.com/t/file-upload-delete-physical-uploaded-file-when-deleting-client-side-from-the-control/178 "2024-03-19T13:40:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarianV](https://forum.dotvvm.com/letter_avatar_proxy/v4/letter/m/c0e974/32.png) [@MarianV](https://forum.dotvvm.com/u/MarianV)\
**Post date:** [March 19, 2024, 1:40pm UTC](https://forum.dotvvm.com/t/file-upload-delete-physical-uploaded-file-when-deleting-client-side-from-the-control/178/1 "2024-03-19T13:40:16Z")

</div>

Hi!

![image](https://forum.dotvvm.com/uploads/default/original/1X/fa61ce2506f6c53f2089a3114ec1894078381052.png)

How can we delete the physical file on the server when the user clicks the trash bin button?

---

<div class="post-metadata">

**Author:** ![exyi](https://forum.dotvvm.com/user_avatar/forum.dotvvm.com/exyi/32/9_2.png) [@exyi](https://forum.dotvvm.com/u/exyi)\
**Post date:** [March 19, 2024, 5:44pm UTC](https://forum.dotvvm.com/t/file-upload-delete-physical-uploaded-file-when-deleting-client-side-from-the-control/178/2 "2024-03-19T17:44:24Z")

</div>

I don’t see a simple way for you to implement this, but we should just make this happen automatically.

Anyway, the files are automatically deleted after some interval.
