def delete_role(module, array):
    """Delete Directory Service Role"""
    changed = False
    try:
        array.set_directory_services_roles(names=[module.params['role']],
            group_base='', group='')
        changed = True
    except Exception:
        module.fail_json(msg='Delete Directory Service Role {0} failed'.
            format(module.params['role']))
    module.exit_json(changed=changed)
