def eradicate_vgroup(module, array):
    """ Eradicate Volume Group"""
    changed = True
    if not module.check_mode:
        try:
            array.eradicate_vgroup(module.params['vgroup'])
        except Exception:
            module.fail_json(msg='Eradicating vgroup {0} failed.'.format(
                module.params['vgroup']))
    module.exit_json(changed=changed)
