Deleting unused groups from device 