What is the correct and the easiest way to remove the "Billing Agreements" tab from frontend ?

The idea is just to hide the link so later if I need I could easily return it back.

To do this in Magento 1 we had to comment out in billing_agreement.xml module


How about in Magento 2?


  1. I opened this module: /vendor/magento/module-paypal/view/frontend/layout/customer_account.xml
  2. I commented out the code
  3. Clear the Cache and the the link is removed
  • 2
    no this is not the right way, copy that xml to your theme and make remove="true" – Kumar A. Oct 5 '16 at 8:25
  • 4
    Don't edit the vendor files! – slayerbleast May 3 '17 at 7:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.