Incus-Gitea/util/incus-remove-profiles.sh

9 lines
206 B
Bash
Executable File

#!/bin/bash
#
PROFILES="$(incus profile list -f csv | awk -F"," '{print $1}' | sed 's/default//g' | awk 'NF')"
for profile in $PROFILES; do
echo "Deleting $profile..."
incus profile delete $profile
done