# Delete Single File from huggingface?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdelete-single-file-from-huggingface%2F37055%3E%5C
**Category:** Beginners\
**Created:** [April 19, 2023, 4:00am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdelete-single-file-from-huggingface%2F37055 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FQuickWick)%5C
**Post date:** [April 19, 2023, 4:00am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdelete-single-file-from-huggingface%2F37055%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fstevhliu)%5C
**Post date:** [April 19, 2023, 1:36pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdelete-single-file-from-huggingface%2F37055%2F2 "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)
