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.

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,

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

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