remove email groups implementation