How can I delete a model repository

Hi,
Sorry if this is a duplicate thread.
Thanks for this beautiful platform for sharing our models and datasets.

My question is, how can I delete a model repository from huggingface model hub?

Thanks in advance.
Sagor

To delete a model repository, right now you need to do it in code from the transformers library and do something like:

from transformers.hf_api import HfApi

HfApi().delete_repo(...)

We’ll ship a UI to do it directly from the website in the coming days, though. (cc @pierric @thomwolf)

1 Like

Hi @julien-c
Just delete one of my repo using this method.
Thank you. Hope will get UI option soon.
regards

1 Like

@sagorsarker UI option is up, see 🔥 [New] You can now delete a model from the website!

1 Like

amazing. thanks @julien-c for letting me know.
regards