Azure Blob Storage Delete Folder

Robert 1 Reputation point
2020-07-17T16:55:55.523+00:00

How do I delete a folder using Azure.Storage.Blob

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,427 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. deherman-MSFT 33,306 Reputation points Microsoft Employee
    2020-07-17T17:39:55.587+00:00

    @RobertWoods-0716 Azure Blob storage does not have a concept of folders and everything inside the container is considered a blob including the folders. You can easily delete a folder including all its contents in Storage Explorer. Otherwise you will need to fetch a list of everything you wish to delete and run those through a loop to delete. For more programmatic solutions please check this thread.

    Hopefully this helps! Please let us know if you have further questions.


    Please do not forget to "Accept the answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    2 people found this answer helpful.

  2. Aron Kovacs 36 Reputation points
    2022-10-12T09:20:13.04+00:00

    It is rather upsetting that MS reinvents the folder wheel. Yes, physically they may not exist (as MS decided), but logically they are displayed everywhere. (as MS decided) Why would it have been too good service to customers offering them a delete by folder command? Instead we are wasting our time with rewriting loops over blobs selectors in script languages....

    In my humble world files and containers of files are basics.

    2 people found this answer helpful.
    0 comments No comments

  3. Robert 1 Reputation point
    2020-07-20T15:01:22.637+00:00