The move came after customers began complaining online of discolored, foul smelling liquid in the company's Ubest brand of milk.
More from GlobalPost: China forced abortion case: Feng Jianmei to be compensated, officials punished
The Shanghai Municipal Bureau of Quality and Technical Supervision said it discovered the detergent in the milk during an inspection on Monday at one of Bright Dairy's Shanghai factories – adding the case was being investigated.
A recall notice on the company's website said a mechanical delay at the factory during routine maintenance had allowed a small amount of "alkaline cleaning solution" to be added to 300 cartons of milk, Reuters reported.
"We deeply apologize for any impact this has had on our customers. From today on, we will strictly strengthen relevant management procedures," the notice said.
According to The Wall Street Journal, shares in Bright Dairy, which is known as Guangming in Chinese, recovered after falling in early trade.
More from GlobalPost: Banking on Africa's poor
The detergent incident comes weeks after the Inner Mongolia Yili Industrial Group recalled six months' worth of infant formula products that had been contaminated by mercury.
In 2008, at least six Chinese children died and a further 300,000 fell ill after drinking milk and infant formula laced with the industrial chemical melamine.