dotfiles/legacy/bin/uplink-delete-bucket

6 lines
183 B
Plaintext
Raw Normal View History

2021-05-02 16:54:37 +00:00
#!/bin/sh
bucket="$1"
access="$2"
uplink ls ${access:+--access "$access"} "sj://$bucket/" | awk '{print $NF}' | xargs -I {} uplink rm ${access:+--access "$access"} "sj://$bucket/{}"