How to delete a file in Azure blob storage

huangapple go评论154阅读模式
英文:

How to delete a file in Azure blob storage

问题

我在Azure Blob存储中使用Go删除文件的示例很难找到。唯一的示例是一个代码片段这里,展示了如何删除整个容器。
如果可能的话,希望能提供更详细的Go示例资源链接。

英文:

I'm having a hard time finding examples of deleting a file stored in Azure blob storage using Go. The only example is a code extract here showing how to delete the entire container.
Any help is appreciated and if possible may you share links to resources with more detailed examples in Go.

答案1

得分: 2

azblob包中,我看到BlobURL类型有一个Delete方法,该方法在GC期间将Blob标记为删除。它内部引用了Delete Blob API调用。

英文:

In the azblob package I see that there is a Delete method for the BlobUrl type, which marks the blob for deletion during the GC. It internally refers to the Delete Blob API call.

huangapple
  • 本文由 发表于 2021年10月27日 23:18:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/69741298.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定