How to remove refunds link from the Order page Magento 2?

Customers can track the status of their orders refunds from the dashboard of their accounts, My orders tab.

Refunds are the translated string label for Creditmemo functionality.

You can easily Remove refunds link from the Order view page using Magento 2 by modifying the XML file.

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

refunds-creditmemo tabs.
Order Refunds Creditmemo tabs

Block name for refunds functionality:
sales.order.info.links.creditmemo

Base File Path:
vendor/magento/module-sales/view/frontend/layout/sales_order_info_links.xml

You need to remove the Block sales.order.info.links.creditmemo using an XML file to remove the refunds tab from the order details page.

sales_order_info_links.creditmemo contains the refunds tab link, label and path details.

<block class="Magento\Sales\Block\Order\Link" name="sales.order.info.links.creditmemo">
    <arguments>
        <argument name="key" xsi:type="string">Creditmemos</argument>
        <argument name="path" xsi:type="string">sales/order/creditmemo</argument>
        <argument name="label" xsi:type="string" translate="true">Refunds</argument>
    </arguments>
</block>

If you want to remove Order refunds link from the order view page, Create  sales_order_info_links.xml file,

Override XML file by the two approaches,

1. From Theme level,
app/design/frontend/{Package}/{themename}/Magento_Sales/layout/
sales_order_info_links.xml

2. From Module Level,
Create app/code/Jesadiya/Shipment/view/frontend/layout/
sales_order_info_links.xml

Keep the Below content in your XML file,

<?xml version="1.0"?>

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="sales.order.info.links.creditmemo" remove="true"/>
    </body>
</page>

Clear the Cache (bin/magento cache:clear) to work the functionality.

Refund links will be removed from the Customer Dashboard, My Orders detail view.