Stingrays

What is the stinger on a stingray for?
Does it hurt a stingray to remove its barb? In that case, the potential for complications is so great that only a doctor should attempt removal. Becau...