How to remove Order Shipments link from the Order View Front end Magento 2?

Remove the Order shipments link from the Order view page frontend using Magento 2 by modifying the XML file.

If you want to remove the Order Shipments link from the Order detail page, You need to override the sales_order_info_links.xml file in your module or theme level.

Base File Path:

Order Shipment Tabs
Order Shipment Tabs in order view front area

If you want to remove the order shipment link from the Order detail page, You just remove the Block using an XML file.

Magento_Sales module contains the basic functionality for different order tabs.

sales_order_info_links contains the Shipment tab link, label and path details.

<block class="Magento\Sales\Block\Order\Link" name="">
        <argument name="key" xsi:type="string">Shipments</argument>
        <argument name="path" xsi:type="string">sales/order/shipment</argument>
        <argument name="label" xsi:type="string" translate="true">Order Shipment1s</argument>

If you want to remove Order shipment link from the order view page in the front area, Create new sales_order_info_links.xml file,

You can override XML file by the two way,
1. From Module Level,
Create app/code/Jesadiya/Shipment/view/frontend/layout/

2. From Theme level,

Keep Below content in your XML file to remove Order Shipments,

<?xml version="1.0"?>

<page xmlns:xsi=""
        <referenceBlock name="" remove="true"/>

Clear the Cache and check the order details by URL

Shipment links will be removed from the My Orders detail view.