本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
您可以从管理员账户删除私有中心。删除私有中心之前,您必须先删除此中心中的任何内容。使用以下命令删除中心内容和中心:
# List the model references in the private hub
response = hub.list_models()
models = response["hub_content_summaries"]
while response["next_token"]:
response = hub.list_models(next_token=response["next_token"])
models.extend(response["hub_content_summaries"])
# Delete all model references in the hub
for model in models:
hub.delete_model_reference(model_name=model.get('HubContentName'))
# Delete the private hub
hub.delete()