Optimize group deletion