YanFly's JP&Skill Learn System, how to remove old skills when you learn new ones?

So, I have a base skill, and after you learn the initial one on level up, you teach your character leveled up versions of the skill via the JP system. The problem is, is this makes a very messy skill list. So, I need to know how to remove the old skills when I learn new ones.
How do I go about doing this? The only way I've figured out to do it is to have a 'shop' to remove old ones when the new one has been learned. However, that seems like too much work when I could just make it auto-unlearn the skill upon acquisition of the higher tiered skill.

Any and all help would be appreciated 🙂
Is this MV or Ace?
Is this MV or Ace?
Ace
Try Fomar Skill Replace
http://cobbtocs.co.uk/wp/?p=174
You need to provide a free copy of your game to use the script.
This should do the trick, just change "x" and "y" to the appropriate actor ID/skill.
Spoiler: skill replace
<Learn Cost Eval>
user.refresh();
$gameActors.actor(x).forgetSkill(y);
</Learn Cost Eval>
Try Fomar Skill Replace
http://cobbtocs.co.uk/wp/?p=174
You need to provide a free copy of your game to use the script.
Thank you!

This should do the trick, just change "x" and "y" to the appropriate actor ID/skill.
Spoiler: skill replace
<Learn Cost Eval>
user.refresh();
$gameActors.actor(x).forgetSkill(y);
</Learn Cost Eval>
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-jp-skill-learn-system-how-to-remove-old-skills-when-you-learn-new-ones.78160/