以编程方式批量删除Azure blob存储对象 [英] Programmatically delete Azure blob storage objects in bulks

查看:80
本文介绍了以编程方式批量删除Azure blob存储对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以以编程方式批量删除Azure blob对象?有时一一删除对象需要花费几天的时间.

Is it possible to programmatically delete Azure blob objects in bulks? Deleting objects one by one sometimes takes us several days.

我们在Azure Blob存储上放置了许多新文件,并希望删除所有过时的文件,以避免不必要的费用.

We put a lot of new files on the Azure Blob Storage and all the outdated files we want deleted to avoid unwanted charges.

我已经在网络上搜索了Google/ MSDN /Stack&Overflow,只发现了一个2014年关于MSDN的主题,指的是在Microsoft网站上创建功能请求.

I've googled over the web/MSDN/Stack Overflow and found only one topic on MSDN from 2014 that was referring to create feature request on the Microsoft site.

推荐答案

是否可以以编程方式批量删除Azure blob对象?

Is it possible to programmatically delete Azure blob objects in bulks?

不.您需要一个一个地删除Blob.

No. You would need to delete blobs one-by-one.

您可以做的是加快处理速度,方法是创建不同的容器(例如,每个年/月组合的容器),然后在其中放置相关的Blob.当您需要删除该月份/年份的Blob时,只需删除该容器即可.

What you could do to speed up the process is to create different containers (say a container for each year/month combination) and put related blobs in there. When you need to delete the blobs for that month/year, you simply delete that container.

这篇关于以编程方式批量删除Azure blob存储对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆