gsutil returning “no matches found”

后端 未结 2 1560
一向
一向 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:29
    gsutil rm  gs://bucketName/doc.txt
    

    And for remove entire bucket including all objects

    gsutil rm -r gs://bucketname
    
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题