def delete_alert(module, array):
    """Delete Alert Email"""
    changed = False
    if module.params['address'] == 'flasharray-alerts@purestorage.com':
        module.fail_json(msg='Built-in address {0} cannot be deleted.'.
            format(module.params['address']))
    if not module.check_mode:
        try:
            array.delete_alert_recipient(module.params['address'])
        except Exception:
            module.fail_json(msg='Failed to delete alert email: {0}'.format
                (module.params['address']))
    changed = True
    module.exit_json(changed=changed)
