Thanks Jürg, this works but when remove de group if any transformations are applied to this group. when the group is ungrouped the items lost transformations.
var from = new Point(180, 180);
var to = new Size(80, 80);
var path = new Path.Rectangle(from, to);
path.strokeColor = 'black';
path.scale(4)
var from = new Point(30, 40);
var to = new Point(120, 120);
var path2 = new Path.Rectangle(from, to);
path2.strokeColor = 'red';
alert("pause")
var group = new Group([path, path2]);
group.translate(view.center);
group.scale(2);
group.fillColor =
paper.project.view.draw();
alert("pause")
group.parent.addChildren(group.removeChildren());
group.remove();