scripts-misc/garage/bucket-delete.sh
2023-03-31 10:42:21 +02:00

12 lines
188 B
Bash
Executable file

#!/bin/bash
bucketname=$1
if [[ -z "$bucketname" ]]; then
echo "Usage: $0 bucket-name"
exit 1
fi
set -x
garage bucket delete $bucketname --yes
garage key delete $bucketname --yes