dotfiles/macos/bin/uplink-delete-bucket
2022-05-07 09:24:17 -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/{}"