displayGroup:clear

local group = display.newGroup()
group:insert( rect1 ) – assume rect1 is an existing display object
group:insert( rect2 ) – assume rect2 is an existing display object

– clear the group
for i=group.numChildren,1,-1 do
group:remove(i);
end

– suggestion:
group:clear();
[import]uid: 3642 topic_id: 831 reply_id: 300831[/import]

I see what you mean – but are there cases where you don’t want to just remove the group and then create an empty one again? [import]uid: 3007 topic_id: 831 reply_id: 1843[/import]