#!/bin/bash # Set the number of subscriptions to delete SUBSCRIPTION_COUNT=300 # This should match the number of subscriptions you created for i in $(seq 0 $(($SUBSCRIPTION_COUNT - 1))); do NAME="testing-$i" # Delete the subscription oc delete subscription $NAME -n openshift-operators done echo "Subscriptions deleted."