gsutil returning “no matches found”

后端 未结 2 1561
一向
一向 2021-01-03 20:57

I\'m trying using gsutil to remove the contents of a Cloud Storage bucket (but not the bucket itself). According to the documentation, the command should be:

2条回答
  •  借酒劲吻你
    2021-01-03 21:31

    zsh is attempting to expand the wildcard before gsutil sees it (and is complaining that you have no local files matching that wildcard). Please try this, to prevent zsh from doing so:

    gsutil rm 'gs://bucket/**'
    

    Note that you need to use single (not double) quotes to prevent zsh wildcard handling.

提交回复
热议问题