moai.DoMethod(id, "Remove", obj)
Before you can call this method, you have to put the group into a special state that allows the addition and removal of children. This can be done by running the Group.InitChange and Group.ExitChange methods on the respective group object.
moai.DoMethod("mygroup", "initchange") moai.DoMethod("mygroup", "remove", "mychild") moai.DoMethod("mygroup", "exitchange", false)The code above removes the child "mychild" from the group "mygroup". You could then attach "mychild" to another group or free it.