当你想删除oss服务中某个bucket下的文件夹时,文件夹中又包含了太多文件,递归删除太过耗时,又必须删除时,此时就要用oss的文件删除策略,如下所示: OSSClient client = new OSSClient(endpoint, accessId, accessKey); SetBucketLifecycleRequest req = new SetBucketLifecycleRequest(bucketName); // 添加Lifecycle规则 req.AddLifecycle…