But also Dan's suggestions have positive results:
In the activate method of the tool I have put the
Sketchup.active_model.start_operation "myTool",true,true,false
And I have put the
Sketchup.active_model.abort_operation
in the deactivate method of the tool and in the onPreSaveModel model observer.
Now the group is disappear before saving the model.
Thank you both.