If you want to remove woocommerce related products programmatically in WordPress then add that following code in your functions.php file.
Clear the query arguments for related products so none show.
function woocommerce_remove_related_products( $args ) { return array(); } add_filter('woocommerce_related_products_args','woocommerce_remove_related_products', 10);
Have any doubt, then comment here!