Hi @RichardP
I struggled with the same issue and came up with this script that seems to work. Please take care before using it and make sure you have a backup.
Note that you can replace the jq '.items[].id' with jq '.items[0].id' to test deleting only the first package instead of all packages at once.
The script assumes that you created a profile+authenticated with "sas-admin" prior to running this.
#!/bin/bash
echo "List of packages to be deleted:"
/opt/sas/viya/home/bin/sas-admin transfer list
echo "Proceed with delete? (Y/n)"
read vproceed
if [[ "$vproceed" == "Y"]]; then
echo "Deleting packages..."
for i in $(/opt/sas/viya/home/bin/sas-admin --output json transfer list | jq '.items[].id' | sed 's/\"//g')
do
yes | /opt/sas/viya/home/bin/sas-admin transfer delete --id $i
done
else
echo "Exiting without deleting packages..."
fi
Eyal