By default, clicking on the “Ship to a different address?” checkbox on WooCommerce checkout page displays the shipping fields.
Shipping fields can be turned off from WooCommerce Settings. It’s under WooCommerce > Settings > Shipping > Shipping options
page. There, select Force shipping to the customer billing address
for Shipping destination
option. This will remove shipping fields from checkout page.
Alternatively we can remove shipping fields from checkout page with a single line of code:
add_filter( 'woocommerce_cart_needs_shipping_address', '__return_false');
Code goes in the functions.php
file of your active theme.