delete_data_containers.sh 241 B

12345678910111213
  1. #!/bin/bash
  2. cd "$(dirname "$0")" || exit 1
  3. if [ "$#" -ne 1 ]; then
  4. echo "Usage: $0 database_name"
  5. exit 1
  6. fi
  7. for file in ./data_containers/*; do
  8. if [ -f "$file" ]; then
  9. datactl offline database delete_dc "$1" -f "$file"
  10. fi
  11. done