dotfiles/legacy/bin/uplink-delete-bucket
2022-06-14 07:32:27 -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/{}"