# Deleting files locally does not delete remotely

**URL:** <https://community.hubspot.com/t/deleting-files-locally-does-not-delete-remotely/88699>\
**Category:** CMS Development\
**Created:** [August 31, 2023, 12:01pm UTC](https://community.hubspot.com/t/deleting-files-locally-does-not-delete-remotely/88699 "2023-08-31T12:01:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KospeKaspa](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@KospeKaspa](https://community.hubspot.com/u/KospeKaspa)\
**Post date:** [August 31, 2023, 12:01pm UTC](https://community.hubspot.com/t/deleting-files-locally-does-not-delete-remotely/88699/1 "2023-08-31T12:01:07Z")

</div>

Hello,

I have the hs watch running and when i locally delete a file, it does not do the same remotely. So, if i use the hs fetch, the deleted files are again saved locally.

I tried to delete then hs upload and again, when i make hs fetch, the deleted files appear again.

How to delete files locally and apply remotely?

Thank you

---

<div class="post-metadata">

**Author:** ![paradummy](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@paradummy](https://community.hubspot.com/u/paradummy)\
**Post date:** [September 1, 2023, 8:21pm UTC](https://community.hubspot.com/t/deleting-files-locally-does-not-delete-remotely/88699/2 "2023-09-01T20:21:28Z")

</div>

Hi @KospeKaspa  
The watch command has a [--remove](https://developers.hubspot.com/docs/cms/developer-reference/local-development-cli#set-a-watch-for-automatic-upload) option, which should do the trick for you. Also since CLI v5 theres the [--clean](https://developers.hubspot.com/docs/cms/developer-reference/local-development-cli#upload-files) option for the upload command, which you can use as well to get rid of old files in the design manager.
