Magento 2 : How to remove and change My Account Navigation
1 ) Add below code in your extended default.xml file to remove Account tabs links.
app/design/frontend/vendorname/themename/Magento_Theme/layout/default.xml
Here is list of code to remove account tabs as needed. Will helpful to you and other users as well
<!-- Address link -->
<referenceBlock name="customer-account-navigation-address-link" remove="true"/>
<!-- Downloadable product link -->
<referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/>
<!-- Subscription link -->
<referenceBlock name="customer-account-navigation-newsletter-subscriptions-link" remove="true"/>
<!-- Billing agreement link -->
<referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/>
<!-- Product review link -->
<referenceBlock name="customer-account-navigation-product-reviews-link" remove="true"/>
<!-- My credit card link -->
<referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>
<!-- Account link -->
<referenceBlock name="customer-account-navigation-account-link" remove="true"/>
<!-- Account edit link -->
<referenceBlock name="customer-account-navigation-account-edit-link" remove="true"/>
<!-- Orders link -->
<referenceBlock name="customer-account-navigation-orders-link" remove="true"/>
<!-- Wish list link -->
<referenceBlock name="customer-account-navigation-wish-list-link" remove="true"/>
2 ) Renaming Newsletter Subscriptions
Copy customer_account.xml from
vendor/magento/module-newsletter/view/frontend/layout/customer_account.xml
To your extended module
app/design/frontend/vendorname/themename/Magento_Newsletter/layout/customer_account.xml
Let me know if any problem.
Keep cache disable while changing any XML file
Create xml file in your custom theme app/design/frontend/Custom/mytheme/Magento_Customer/layout/customer_account.xml
<?xml version="1.0" encoding="UTF-8"?>
<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-address-link" remove="true"/>
</body>
</page>
For Changing newsletter subscriptions to subscriptions, copy file vendor/magento/module-newsletter/view/frontend/layout/customer_account.xml
in your custom theme app/design/frontend/Custom/mytheme/Magento_Newsletter/layout/customer_account.xml
and change the required text.
Then run commands for static content deploy and cache flush.