Minathe
Minathe

Reputation: 630

How to delete a file in Azure blob storage

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.

Upvotes: 0

Views: 1912

Answers (1)

jabbson
jabbson

Reputation: 4913

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.

Upvotes: 2

Related Questions