Positively charged rod induces negative charge on the side of the sphere closer to the rod and an equal positive charge on the side away from the rod. When the rod is withdrawn, the negative charges move to neutralise the equal positive charge. The charge left is zero.