unlearning
To unlearn something is to forget how to do it. Sometimes you might unlearn a skill because you no longer need it.
He needs to unlearn how to ride a bike because he no longer needs it.
She needs to unlearn how to speak Spanish because she's moved to a new country.