#!/bin/bash

# Check if all arguments are provided
if [ "$#" -ne 1 ]; then
    echo "Usage: $0 <iterations>"
    exit 1
fi

# Assign arguments to variables
iterations=$1

# Loop and call the python script
for ((i=1; i<=iterations; i++))
do
    project_name=$(printf "%s%02d" "$TIDB_PROJECT_PREFIX" "$i")
    echo "delete ${project_name} clusters ..."
    python src/delete_clusters.py $project_name 
done