Unequip Weapons through Script Calls

Greets.

I'm trying to make a skill that makes the character throw a weapon and then unequip it. I'm using Yanfly plugins for it. Is there a script call that removes the currently equipped weapon or armor of a particular character? If not, is there any way I can make it work?

Thanks in advance.
Code:
$gameActors.actor(actorId).changeEquip(slotId, $dataWeapons[0]);

Should work, cant test it right now, just set the weapon slot to a ID:0 would unequip it, any other ID would equip the specific weapon
Dunno what the slotId for weapons is right now :rswt2:

Edit: Nvm slotId should be "0" as well.
Thank you. You really helped me.

Original thread: https://forums.rpgmakerweb.com/threads/unequip-weapons-through-script-calls.107711/