Removing a 'Custom' item from PC Inventory

Hi Guys… ‘Sir-Knows-Nothing-A-lot’ here,
I’m looking to remove a custom miscellaneous item(palette) which
helps a certain script to fire from the PC inventory when I use another placeable.
It is a custom item (inventory) from the miscellaneous palettes.

I feel like it’s something I should know, yet I only get 3 months to work in this toolset
as duty calls. Any help is always appreciated.

Please don’t tell me DestroyObject works.
If it does, forgive me for wasting yours and my time.
I didn’t think DestroyObject worked on
Custom misc. palette items. Reason I ask is that the custom item acquired, hampers
our hero a bit. So when I click on the placeable that requires misc. object, I can remove or destroy
it all together.
Thanks as always in advance!

DestroyObject(GetItemPossessedBy(oPC, “foobar”));

where oPC is the PC object and foobar is the item tag (not the resref).

If that doesn’t work, check that the PC actually has the item:

SendMessageToPC(oPC, “Item=” + GetName(GetItemPossessedBy(oPC, “foobar”)));

Thanks Pro as always
I remembered how this works this morning. I shouldn’t have wasted your time with
this thread. I just had to remove the effect along with DestroyObject(GetItem…
Thanks for your response tho.’