我正在尝试使用 Azure-storage-node 删除整个 blob 存储容器
但我似乎无法在任何地方找到如何做到这一点。有很多关于如何对 blob 执行此操作的信息。但就我而言,我需要删除整个容器。 我正在 NodeJS 服务器上工作。 任何帮助将不胜感激。
最佳答案
您要调用的函数是 deleteContainer
或deleteContainerIfExists
。这将删除整个容器。
var blobSvc = azure.createBlobService();
blobSvc.deleteContainerIfExists('mycontainer', function(error, result, response){
if(!error){
console.log('container deleted!')
}
});
关于node.js - 如何删除Azure NodeJS的blob存储容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41488532/