Removing a group if it is the current context is not allowed.
Change the context in all views to something other than the group that is to be deleted.