done

for hash in "${TORRENT_HASHES[@]}"
do
  for port in "${PORTS[@]}"
  do
    if ! transmission-remote localhost:"$port" -t "$hash" -r > /dev/null 2>&1; then
      response_error "Could not remove torrents"
    fi
  done