Seven cattle cloud qshell batch delete files

First download qshell

I win10, download amd64

https://developer.qiniu.com/kodo/tools/1302/qshell?ref=support.qiniu.com#3

Configuration environment variable

Landing seven cattle cloud web side gets to ak sk, because some operations related to the rights issue, it is understood to be landed in the qshell

qshell account name ak sk

ak sk do not introduce more, name is a name, just take a

After the operation should be in C: \ Users \ Administrator generates a .qshell folder (I just look at the record here, this sentence lacks significance)

Account Management

Use qshell user sub-command can be used to record the multi-account management information.

  1. qshell user ls include all account information under Account
  2. qshell user cu may be used to switch accounts
  3. qshell user cu not carry, then will switch to the most recent accounts; for example, I finish the operation in the A account, use qshell user cu B to B account, then use the qshell user cu account can switch back to A

 

1. Specify the list of files to be deleted todelete.txtdelete:

a.jpg
test/b.jpg
$ qshell batchdelete if-pbl -i todelete.txt

2. Remove the space if-pblof all files:

$ qshell listbucket if-pbl -o if-pbl.list.txt
$ qshell batchdelete --force if-pbl -i if-pbl.list.txt
  1. If you want to export the file list of successes and failures
$ qshell batchdelete if-pbl -i if-pbl.list.txt --success-list success.txt --failure-list failure.txt
  1. For the name of the file you want to delete contains spaces cases, you can specify a custom delimiter for each line of the file is divided, if you use \ t divided
$ qshell batchdelete -F'\t' if-pbl -i todelete.txt

Guess you like

Origin www.cnblogs.com/zonglonglong/p/12468484.html