Depends on the use case.
Normally I just call [node removeFromParentAndCleanup:YES]
, which is enough for my needs.
If you want direct access to the private cleanup
method in a subclass of CCNode
you should just import CCNode_Private.h
in you header file instead of CCNode.h
.