dotfiles/bin/uplink-delete-bucket
2021-05-02 12:54:37 -04:00

6 lines
183 B
Bash
Executable File

#!/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/{}"