对象存储 OSS删除bucket
详细解答可以参考官方帮助文档OSSDeleteBucketRequest * delete = [OSSDeleteBucketRequest new];delete.bucketName = @'';OSSTask * deleteTask = [client deleteBucket:delete];[deleteTask continueWithBlock:^id(OSSTask *task) { if (!task.error) { NSLog(@'delete bucket success!'); } else { NSLog(@'delete bucket failed, error: %@', task.error); } return nil;}];
上述代码删除了一个Bucket。
只有Bucket的拥有者才能删除这个Bucket。为了防止误删除的发生,OSS不允许用户删除一个非空的Bucket。
赞0
踩1