Finding part of an actor and deleting specific part

I would like to find the head of my actor, and just delete/cleanup the head of it. Is this possible? I have tried many things such as…

body.find('**/head').delete()

I have tried just finding the head of the actor and nothing happens. Please help.

The method is called removeNode().

You can also just hide() it (I do this a lot with models).

I have tried removeNode() as well and it doesn’t work, and i don’t want to hide it because then that would lead to so many different models loaded for no reason.

I found a solution buried deep within the forum. instead of using

body.find('**/head').removeNode()

it should be

body.find('**/**head').removeNode()