# cos_rm_recursive **Repository Path**: mirrors_tencentyun/cos_rm_recursive ## Basic Information - **Project Name**: cos_rm_recursive - **Description**: cos_rm_recursive - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2025-08-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 运行环境:python 2.7 1.修改 conf/config.json 中的 appid和 secret_id和 secret_key "appid":10000202, "secret_id":"*******", "secret_key":"******", "log_level":1, #记录log级别 0:debug 1:info 2:warning 3:error "log_file_name":"del_file.log", #记录log的文件名 "dir_thread_num":2, #递归搜索文件夹线程数 "file_thread_num":5, #删除文件线程数 "delete_folder_fail_exist":1 #删除文件夹失败是否直接退出,1:退出 0:继续执行其他文件删除 说明:线程数一般不用调整,如果调整过大容易导致对cos系统的操作频控 2.修改 conf/bucketlist.txt,填写待删除的bucket和文件夹,文件夹必须以/结尾 格式如下 bucketName, /folder1/ bucketName, /folder2/ bucketName, /folder3/ 说明: (1)可以直接填写跟目录/,即bucketName, / (2)注意文件夹之间不嵌套,比如folder1,folder2,folder3不能有嵌套关系 3.执行python rm_recursive.py