| hf_delete_repo | R Documentation |
Delete a model, dataset, or Space repository. This destructive operation is guarded: it requires 'confirm = TRUE' and is refused when 'CI=true'.
hf_delete_repo(repo_id, repo_type = "model", token = NULL, confirm = FALSE)
repo_id |
Character string. Repository ID. |
repo_type |
Character string. One of "model", "dataset", or "space". |
token |
Character string or NULL. API token with write scope. |
confirm |
Logical. Must be TRUE to delete the repository. |
The parsed Hub API response.
## Not run:
hf_delete_repo("me/old-test-dataset", repo_type = "dataset", confirm = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.