  def self.delete_statistics_group(group_id)

    yaml = Research.get_config_yaml

    if yaml.nil? or yaml[:statistics].nil?
      return []
    end

    groups = yaml[:statistics][:groups]

    return [] if groups.nil?

    ary = groups.split('|')
    ary.delete group_id.to_s

    ary.compact!
    ary.delete ''

    yaml[:statistics][:groups] = ary.join('|')

    Research.save_config_yaml yaml

    return ary
 end
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.