According to the Canadian Centre for Occupational Health and Safety, you should remove a fire extinguisher from service when the cylinder or shell threads are damaged, there is any visible corrosion on the unit, or the extinguisher has been exposed to fire.
You should also remove a fire extinguisher from service once it’s passed its expiry date, or when a professional inspection has determined that its useful life has ended.