I need to unset the shipping method if it was selected by the customer based on some condition. I tried
$('#shipping_method').prop('checked', false);
unchecking the radio button of that particular shipping method but the shipping method is set and shipping charges is applied to the cart.
How to unset the shipping method?