diff --git a/docs/source/en/guides/cli.md b/docs/source/en/guides/cli.md index 8e1cc6bc31..1f9897bfe1 100644 --- a/docs/source/en/guides/cli.md +++ b/docs/source/en/guides/cli.md @@ -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... ``` diff --git a/src/huggingface_hub/commands/repo_files.py b/src/huggingface_hub/commands/repo_files.py index a13c8c3dd7..f15bbed04f 100644 --- a/src/huggingface_hub/commands/repo_files.py +++ b/src/huggingface_hub/commands/repo_files.py @@ -16,7 +16,7 @@ Usage: # delete all - huggingface-cli repo-files delete * + huggingface-cli repo-files delete "*" # delete single file huggingface-cli repo-files delete file.txt @@ -28,7 +28,7 @@ huggingface-cli repo-files delete file.txt folder/ file2.txt # delete multiple patterns - huggingface-cli repo-files delete file.txt *.json folder/*.parquet + huggingface-cli repo-files delete file.txt "*.json" "folder/*.parquet" # delete from different revision / repo-type huggingface-cli repo-files delete file.txt --revision=refs/pr/1 --repo-type=dataset