Customizing and enabling Wordpress Adminbar

I have seen following code to work as enabler of admin bar and area for all users.

but what would be the customizing code for removing any links from admin bar or adding them.

Options should be with using Ultimate branding plugin and without using it.

Information related to topic is very scattered on internet and want to provide a one solution for all.

add_filter('woocommerce_disable_admin_bar', '_wc_disable_admin_bar', 10, 1);

function _wc_disable_admin_bar($prevent_admin_access) {
    if (!current_user_can('example_role')) {
        return $prevent_admin_access;
    }
    return false;
}

add_filter('woocommerce_prevent_admin_access', '_wc_prevent_admin_access', 10, 1);

function _wc_prevent_admin_access($prevent_admin_access) {
    if (!current_user_can('example_role')) {
        return $prevent_admin_access;
    }
    return false;
}