Skip to content

Commit

Permalink
fix repo-files CLI example
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin committed Jul 30, 2024
1 parent 2ef1011 commit b15659f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/source/en/guides/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ Files correctly deleted from repo. Commit: https://huggingface.co/Wauplin/my-coo

Use Unix-style wildcards to delete sets of files:
```bash
>>> huggingface-cli repo-files Wauplin/my-cool-model delete *.txt folder/*.bin
>>> huggingface-cli repo-files Wauplin/my-cool-model delete "*.txt" "folder/*.bin"
Files correctly deleted from repo. Commit: https://huggingface.co/Wauplin/my-cool-mo...
```

Expand Down
4 changes: 2 additions & 2 deletions src/huggingface_hub/commands/repo_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Usage:
# delete all
huggingface-cli repo-files <repo_id> delete *
huggingface-cli repo-files <repo_id> delete "*"
# delete single file
huggingface-cli repo-files <repo_id> delete file.txt
Expand All @@ -28,7 +28,7 @@
huggingface-cli repo-files <repo_id> delete file.txt folder/ file2.txt
# delete multiple patterns
huggingface-cli repo-files <repo_id> delete file.txt *.json folder/*.parquet
huggingface-cli repo-files <repo_id> delete file.txt "*.json" "folder/*.parquet"
# delete from different revision / repo-type
huggingface-cli repo-files <repo_id> delete file.txt --revision=refs/pr/1 --repo-type=dataset
Expand Down

0 comments on commit b15659f

Please sign in to comment.