无法从Google存储中删除文件0字节文件

时间:2017-08-08 12:51:27

标签: google-cloud-platform google-cloud-storage gsutil

我的存储桶中有一堆0字节文件,可能是由于上传过程中的错误。我尝试通过Google Storage GUI删除文件:

enter image description here (返回成功,但文件在刷新时重新出现)

使用gsutil:

gsutil rm gs://bucket/myfile.xml # returns "Operation completed over 1 objects."

使用客户端库v0.20.0-beta

val client: Storage = StorageOptions.getDefaultInstance.getService
client.delete(BlobId.of(bucketName, path)) // returns true the first time, then false

但没有任何作用......

NB: 我没有尝试删除存储桶本身,因为它包含我们的应用程序使用的数千个(大多数是未损坏的)文件

0 个答案:

没有答案