Rapid Spin deals damage. Afterwards, it removes binding moves, Leech Seed, and entry hazards on the user's side of the field. If the move fails due to the target being immune to it or protecting itself, the moves and hazards are not removed. If the attack wasn't executed at all because of the user hurting itself in confusion or being fully paralyzed, they aren't removed either. If the user faints right after using this move (for example because of Rough Skin) the hazards and moves also aren't removed.