英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论