We find a complete criterion for a Kummer extension K over the rational function field k=Fq(T) of degree ℓ to have indivisibility of its divisor class number hK by ℓ, where Fq is the finite field of order q and ℓ is a prime divisor of q−1. More importantly, when hK is not divisible by ℓ, we have hK≡1(modℓ). In fact, the indivisibility of hK by ℓ depends on the number of finite primes ramified in K/k and whether or not the infinite prime of k is unramified in K. Using this criterion, we explicitly construct an infinite family of the maximal real cyclotomic function fields whose divisor class numbers are divisible by ℓ.