Skip to content

Commit

Permalink
cleanup custom actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rocktavious committed Feb 12, 2025
1 parent 4f0292f commit e7a6d0a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions clear_account.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ echo "$infra" | jq -r '.[] | .id' | while read -r id; do
opslevel delete infra "$id"
done

echo "[opslevel] Deleting Triggers..."
triggers=$(opslevel list trigger-definition -o json)
echo "$triggers" | jq -r '.[] | .Id' | while read -r id; do
opslevel delete trigger-definition "$id"
done

echo "[opslevel] Deleting Actions..."
actions=$(opslevel list actions -o json)
echo "$actions" | jq -r '.[] | .Id' | while read -r id; do
opslevel delete action "$id"
done

echo "[opslevel] Deleting Teams (errors may occur that is ok)..."
while true; do
teams=$(opslevel list teams -o json)
Expand Down

0 comments on commit e7a6d0a

Please sign in to comment.