[英]how to delete blob storage container azure NodeJS
我正在嘗試使用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!')
}
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.