Two flavors. Literal: insects/snakes shedding skin. Figurative: a person or organization 'sheds' its good qualities and becomes corrupt — almost always negative. The fixed phrase
蜕化变质 (tuìhuà biànzhì, 'degenerate and change in nature') is standard CCP/political vocabulary for cadres going bad.