Destroy Augment Upon Detaching

I'm using Yanfly's YEP_X_AttachAugments plugin and was wondering how do I go about destroying/discarding an augment when you detach it. So far this is wut I came up w/ (I not sure if I'm on the right track or not).
JavaScript:
<Augment Detach Eval: Arrow>

</Augment Detach Eval: Arrow>
I think I need to use:
effectItem
The plugin help file says "effectItem" refers to the augment in question. But I wouldn't know wut to put after that...
You'll prolly need to use something from yanfly's discard plugin.
This is what I got so far, but it isn't working, so I must be missing something or the syntax is incorrect...
JavaScript:
<Augment Detach Eval: Arrow>
this.performDiscardItem(item, 1);
</Augment Detach Eval: Arrow>
I'm guessing I need to replace "item" in the parenthesis w/ code that will reference the currently selected augment in question.

Edit: Or maybe this would be more appropriate? I don't know what to put in the place of "gain" tho...
$gameParty.loseItem(effectItem, gain);
Try this?:
JavaScript:
<Augment Detach Eval: Arrow>
$gameParty.loseItem(this.item(), 1);
this.refresh();
</Augment Detach Eval: Arrow>
Damn doesn't work...
What about using the item's ID instead? But, idk the code for that.

I've tried all of the following so far, to no avail...
JavaScript:
$gameParty.loseItem(itemId(), 1);
$gameParty.loseItem(_itemId(), 1);
$gameParty.loseItem(itemId(100), 1);
$gameParty.loseItem(_itemId(100), 1);
$gameParty.loseItem(itemId[100], 1);
$gameParty.loseItem(_itemId[100], 1);
$gameParty.loseItem(this.itemId(), 1);
$gameParty.loseItem(this.itemId(100), 1);
$gameParty.loseItem(this.itemId[100], 1);
$gameParty.loseItem(this._itemId(), 1);
$gameParty.loseItem(this._itemId(100), 1);
$gameParty.loseItem(this._itemId[100], 1);
What am I doing wrong?? Someone please help! D':

This would be the final piece of the puzzle to get my Bow & Arrow system working. It would be 100% complete if I could just have the arrow be destroyed when detached.

Edit: Ok, I figured out the correct syntax is:
JavaScript:
<Augment Detach Eval: Arrow>
$gameParty.loseItem($dataItems[100], 1);
this.refresh();
</Augment Detach Eval: Arrow>
However, it only destroys an arrow I already have in my inventory, not the one currently being detached. I assume this is because the code is run before the detached augment is placed back into the inventory. Does anyone have a workaround? I'm literally so close!

Original thread: https://forums.rpgmakerweb.com/threads/destroy-augment-upon-detaching.122734/