Removing one skill to add another

I would like to simulate the growth of a skill.

Example: Hero has the skill BASH. Then it gets to level 10 and learns MEGA BASH. While it learns that skill, it also unlearns BASH.

How do I do make that happen?
This script by Fomar does exactly that.
Nice! that works. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/removing-one-skill-to-add-another.43178/