Deleting Children from the Node

Hello,



I am a noob at JME. I create a sphere and put it to a Node.

So sometimes i need to delete this sphere. Here i use the method detach(sphere).

My question is, is this the best method to delete things? If i do it like this, will it be really delete or will it still occupy memory?

I have a lot of this spheres and i need to delete them out of the univers :slight_smile:

Sorry for bad english and sorry if the question was too stupid.

If there are no other references to this sphere, detaching it from the node will cut the only reference to your instance so the garbage-collector should remove this. 

thx!