Home > Mobile >  How to delete a file in Azure blob storage
How to delete a file in Azure blob storage

Time:10-28

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.

CodePudding user response:

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.

  • Related