简体   繁体   English

如何删除Blob存储容器天蓝色NodeJS

[英]how to delete blob storage container azure NodeJS

I am trying to delete a whole blob storage container with Azure-storage-node 我正在尝试使用Azure-storage-node删除整个blob存储容器

But I cannot seem to find anywhere how to do this. 但是我似乎找不到任何方法。 There is a lot of information about how to do this for blobs. 有关如何对Blob执行此操作的信息很多。 But in my case I need to delete the whole container. 但就我而言,我需要删除整个容器。 I am working on a NodeJS server. 我正在使用NodeJS服务器。 Any help would be appreciated. 任何帮助,将不胜感激。

The function you would want to call is deleteContainer or deleteContainerIfExists . 您要调用的函数是deleteContainerdeleteContainerIfExists This would delete an entire container. 这将删除整个容器。

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.

相关问题 如何从私有 Azure Blob 存储容器中删除 Blob - How to Delete Blob From Private Azure Blob Storage Container 如何使用 nodejs 在 azure blob 存储上设置 contenttype - How to set contenttype on azure blob storage with nodejs (Azure 存储 - nodeJS)获取应用于 blob 容器和队列的 SAS 策略 - (Azure Storage - nodeJS) Getting SAS policies that are applied on blob container and queue 使用 nodejs 在 SDK v10 中获取 sasQueryParameter 后,如何将文件上传到 Azure 存储 blob 容器? - how to upload a file to Azure storage blob Container after getting sasQueryParameter in SDK v10 using nodejs? 如何使用 @azure/arm-storage nodejs 将 cors 添加到 Blob 容器 - How do I add cors to a Blob Container using @azure/arm-storage nodejs Nodejs Azure存储副本Blob到新Blob - Nodejs Azure Storage Copy Blob to New Blob 如何使用 blob 服务以编程方式删除 azure 存储中未提交的块? - how to programmatically delete uncommitted blocks in azure storage using blob service? SharedKeyCredential 不是构造函数 - Azure Blob 存储 + Nodejs - SharedKeyCredential is not a constructor - Azure Blob Storage + Nodejs getmetadata用于Azure Blob存储NodeJ中的一系列Blob - getmetadata for a selection of blobs in Azure Blob Storage NodeJs Azure Webapp(使用Node.js)记录到Blob存储 - Azure Webapp (using Nodejs) logging to Blob storage
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM