# Delete Single File from huggingface?

**URL:** <https://discuss.huggingface.co/t/delete-single-file-from-huggingface/37055>\
**Category:** Beginners\
**Created:** [April 19, 2023, 4:00am UTC](https://discuss.huggingface.co/t/delete-single-file-from-huggingface/37055 "2023-04-19T04:00:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![QuickWick](https://avatars.discourse-cdn.com/v4/letter/q/7cd45c/32.png) [@QuickWick](https://discuss.huggingface.co/u/QuickWick)\
**Post date:** [April 19, 2023, 4:00am UTC](https://discuss.huggingface.co/t/delete-single-file-from-huggingface/37055/1 "2023-04-19T04:00:54Z")

</div>

I have been using remote upload to upload files onto the website.

How do I delete a single file from huggingface or a single folder from my repository on huggingface?

Github has this feature, not sure why/how huggingface doesn’t have this feature \< This comment provides site feedback.

---

<div class="post-metadata">

**Author:** ![stevhliu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/stevhliu/32/18373_2.png) [@stevhliu](https://discuss.huggingface.co/u/stevhliu)\
**Post date:** [April 19, 2023, 1:36pm UTC](https://discuss.huggingface.co/t/delete-single-file-from-huggingface/37055/2 "2023-04-19T13:36:40Z")

</div>

Hi, you can use the [`delete_file`](https://huggingface.co/docs/huggingface_hub/v0.14.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.delete_file) or [`delete_folder`](https://huggingface.co/docs/huggingface_hub/v0.14.0.rc0/en/package_reference/hf_api#huggingface_hub.HfApi.delete_folder) function from the [huggingface\_hub](https://huggingface.co/docs/huggingface_hub/v0.14.0.rc0/en/index) library to programmatically delete a file or folder.

Or if you prefer, you can delete it directly from the Hub UI:

 ![Screenshot 2023-04-19 at 9.35.49 AM](https://us1.discourse-cdn.com/hellohellohello/original/2X/2/2ede550cd87fac79d9f666acb4a9cff3ce436c56.png)
