When you delete a device group, all the sub-groups also get deleted. All devices under the device group and its sub-groups will be automatically assigned to the parent group—Root Group.
When you delete a sub-group, all devices under the group is automatically assigned to its parent group.
To delete device group(s)