Script command to remove all items

This for 1 item:
$gameParty.loseItem($dataItems[ID], amount);

But how to make it so that it removes all items from, say ID = 1 to ID = 100?
I think you can try this:

EDIT:

Use this for specific items.
$gameParty._items = {}
$gameParty._weapons = {}
$gameParty._armors = {}

Use this for all items:
$gameParty.initAllItems()
Ohhh, recreating all your tools in MV. Good luck Indinera ^^

Do you want the ability to remove just id 1 to 100 and leave other items be?
JavaScript:
var amount = 99;
for (let i = 1; i <= 100; i++){
    $gameParty.loseItem($dataItems[i], amount);
}
Coding from my phone at work but that should remove items ID 1 - 100
Yes @Zeriab
*hugs*

I'll try it tomorrow @ct_bolt , thanks.

Original thread: https://forums.rpgmakerweb.com/threads/script-command-to-remove-all-items.122639/