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
2020-11-19T10:58:18Z
To delete a model repository, right now you need to do it in code from the transformers library and do something like:from transformers.REDACTED_TOKEN 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)
2020-11-19T13:37:38Z
Hi@julien-cJust delete one of my repo using this method.Thank you. Hope will get UI option soon.regards
2020-12-04T07:49:54Z
@sagorsarkerUI option is up, see🔥 [New] You can now delete a model from the website!
2020-12-04T11:33:29Z
amazing. thanks@julien-cfor letting me know.regards
2022-01-18T23:58:47Z
Note: Problem encountered after deleting a model using the website:(I am assuming that ‘project’ and ‘model’ are synonyms)🔥 [New] You can now delete a model from the website!.If a model is created with the same name again,the project (model) is created.  However on attempt to load data, the following error occurs:Traceback (most recent call last):File “/home/vv/git/hf/venv/lib/python3.8/site-packages/huggingface_hub/repository.py”, line 359, in git_pullsubprocess.run(File “/usr/lib/python3.8/subprocess.py”, line 516, in runraise CalledProcessError(retcode, process.args,subprocess.CalledProcessError: Command ‘[‘git’, ‘pull’]’ returned non-zero exit status 128.I have tried this twice, and finally ended up creating a model with a different name. So it appears that model deletion still leaves some remnants that lead to this issue.