Delete folder(s) inside Azure Blob storage container

For Azure Blob Storage, there isn't really a 'folder' object. 'Folders' are actually just blob name prefixes - the '/' character being used to separate 'folders' is a convention in blob naming, not a requirement. So, you don't have to worry about it - as long as there are no blobs with the "Folder1" prefix, then you're fine.


Under any blob container, there is no real folder or directory exists. They are virtual directories to manage the folder structure for the blobs under container and if all the blobs with any virtual directory or folder are deleted then no such folder exists. It is all logical representation of folder structure and you can ignore the folders under any container.

But when it comes to container, you need to manually delete the container as well after deleting its blobs, if you want to clean up the whole container.