Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qshell batchdelete巨慢 #282

Open
jonny77 opened this issue Aug 18, 2020 · 5 comments
Open

qshell batchdelete巨慢 #282

jonny77 opened this issue Aug 18, 2020 · 5 comments
Labels
question The issue is more of a question than a request for new features or a report of broken features.

Comments

@jonny77
Copy link

jonny77 commented Aug 18, 2020

也就一两千个文件......删除了十多分钟了还在跑....

@forrest-mao
Copy link

帮忙提供下具体的删除的命令,我们来看下

@forrest-mao forrest-mao added the question The issue is more of a question than a request for new features or a report of broken features. label Aug 18, 2020
@jonny77
Copy link
Author

jonny77 commented Aug 18, 2020

./qshell batchdelete my-testbucket

@forrest-mao
Copy link

./qshell batchdelete my-testbucket

这个使用方式不太对,需要在 bucket 后面跟上文件名列表,文件名列表获取方式可以通过 listbucket 来获取

@jonny77
Copy link
Author

jonny77 commented Aug 18, 2020

./qshell batchdelete my-testbucket

这个使用方式不太对,需要在 bucket 后面跟上文件名列表,文件名列表获取方式可以通过 listbucket 来获取

我擦嘞.一两千个文件 我一个一个列出来??? 不得累死么

我的文件大多是/panos/20200818/1/6512bd43d9caa6e02c990b0a82652dca/u/l4/8/l4_u_8_2.jpg 这种格式的 ,有没有通配符可以批量删除 比如/panos/20200818/1/6512bd43d9caa6e02c990b0a82652dca开头的

@forrest-mao
Copy link

./qshell batchdelete my-testbucket

这个使用方式不太对,需要在 bucket 后面跟上文件名列表,文件名列表获取方式可以通过 listbucket 来获取

我擦嘞.一两千个文件 我一个一个列出来??? 不得累死么

我的文件大多是/panos/20200818/1/6512bd43d9caa6e02c990b0a82652dca/u/l4/8/l4_u_8_2.jpg 这种格式的 ,有没有通配符可以批量删除 比如/panos/20200818/1/6512bd43d9caa6e02c990b0a82652dca开头的

用 qshell 的 listbucket 可以指定前缀列取,不指定前缀列取的话可以列取出空间的完整文件列表,不用一个一个操作,2000 文件,一般 1-2min 就列取完了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue is more of a question than a request for new features or a report of broken features.
Projects
None yet
Development

No branches or pull requests

2 participants