MV Add-on command to "Remove All" (YEP Attachable Augments)

Hello! I need some help adding a command to the augments menu in Yanfly's Attachable Augments plugin for MV.

I noticed that it would be very tedious for the player to have to unequip each augment individually whenever they need to sell off old weapons or upgrade to a better weapon, and would like a command added to remove them all at once for a better quality of life experience.

1659973087410.png

With some searching I think some have found a script call/the function that is able to remove multiple augments in these threads:



However, I'm completely lost as to how it could be added as a command due to my very limited knowledge of js. Any help is greatly appreciated. Thank you for reading!
Send me a picture of your Equipment Types from your database, and I can write you a little plugin. Something like this:
EquipTypes.png

It would also be helpful to know which Equipment Types are augmentable and which aren't.

EDIT: Just realized you said weapon specifically. Try this. It adds an option in the Equip Scene to remove augments. (It also assumes Weapon on your Equipment Types is on slot 1). Let me know if you need me to edit it.
Whoa! This works perfectly, thank you so much! I'll make sure to credit you

Does this work for characters that can equip 2 weapons? Is it possible to check which slots are weapons and clear based on those?
Try this. It checks if a character is dual wielding. If it is, then it removes the augments from both weapons.
Thanks for the extra add-on! I don't use the default dual wielding though but rather adding another weapon slot with yep equip core.
This one should work with yanfly's equip core.

Original thread: https://forums.rpgmakerweb.com/threads/add-on-command-to-remove-all-yep-attachable-augments.150244/