title: How to override di.xml of core module in custom module Magento 2
body: <p>I want to remove some portion from di.xml of vendor module. Below example of some portion that to be removed.</p>
  <pre><code>&lt;type name=&quot;Magento\Braintree\Block\GooglePay\Shortcut\Button&quot;&gt;
          &lt;arguments&gt;
              &lt;argument name=&quot;data&quot; xsi:type=&quot;array&quot;&gt;
                  &lt;item name=&quot;template&quot; xsi:type=&quot;string&quot;&gt;Magento_Braintree::googlepay/shortcut.phtml&lt;/item&gt;
                  &lt;item name=&quot;alias&quot; xsi:type=&quot;string&quot;&gt;braintree.googlepay.mini-cart&lt;/item&gt;
                  &lt;item name=&quot;button_id&quot; xsi:type=&quot;string&quot;&gt;braintree-googlepay-mini-cart&lt;/item&gt;
              &lt;/argument&gt;
              &lt;argument name=&quot;payment&quot; xsi:type=&quot;object&quot;&gt;BraintreeGooglePay&lt;/argument&gt;
          &lt;/arguments&gt;
      &lt;/type&gt;
  </code></pre>
  <p>How can I remove the it using override of di.xml in custom module.</p>