Reputation: 318
I am trying to delete a whole blob storage container with Azure-storage-node
But I cannot seem to find anywhere how to do this. There is a lot of information about how to do this for blobs. But in my case I need to delete the whole container. I am working on a NodeJS server. Any help would be appreciated.
Upvotes: 0
Views: 1593
Reputation: 136336
The function you would want to call is deleteContainer
or deleteContainerIfExists
. This would delete an entire container.
var blobSvc = azure.createBlobService();
blobSvc.deleteContainerIfExists('mycontainer', function(error, result, response){
if(!error){
console.log('container deleted!')
}
});
Upvotes: 3