Remove the Billing agreements link Tab from the Customer account sidebar page using Magento 2.
You can remove the Billing agreements link using the customer_account.xml file in your theme or module level. Agreements links come from the Magento_Paypal Module.
When you explore the Paypal module, you can see this link definition from the customer_account.xml file, Now create a new XML file to remove a link,
<?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="customer-account-navigation-billing-agreements-link" remove="true"/> </body> </page>
Path: app/design/frontend/{VendorName}/{themename}/Magento_Theme/layout/customer_account.xml
Check All the navigation links details, Navigation links
Block used to display Billing Link, customer-account-navigation-billing-agreements-link
Clear the Cache after generating an XML file to see the changes in the link.