AWS s3-在iOS中删除多个对象 [英] AWS s3 - Delete multiple objects in iOS

查看:187
本文介绍了AWS s3-在iOS中删除多个对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Objective-C的Amazon Cloud Service中删除多个对象.

I am trying to delete multiple objects in Amazon Cloud Service in Objective-C.

搜索互联网后,我能找到的只是如何删除一个对象:

After searching the internet, all I could find is how to Delete only ONE object:

    AWSS3 *s3 = [AWSS3 defaultS3];
    AWSS3DeleteObjectRequest *deleteRequest = [AWSS3DeleteObjectRequest new];
    deleteRequest.bucket = yourBucket;
    deleteRequest.key = yourKey;
    [[s3 deleteObject:deleteRequest] continueWithBlock:^id(AWSTask *task) {
        return task;
    }];

但是,我希望能够在一个请求中从存储桶中删除多个对象.请帮忙!

However, i want to be able to delete multiple objects from a bucket in one request. Please help!!

非常感谢您

推荐答案

还有另一个名为AWSS3DeleteObjectsRequest(复数)的调用,如果您知道所有键,就可以删除多个对象.在此处中查看文档.

There is another call called AWSS3DeleteObjectsRequest (plural) that allows you to delete multiple objects if you know all of the keys. Check out the documentation here.

这篇关于AWS s3-在iOS中删除多个对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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