title: When a bundle product is in cart remove child components from cart in Woocommerce
body: <p>In Woocommerce, when I add a bundled product <strong><code>A</code></strong> I want to remove products <strong><code>B</code></strong>, <strong><code>C</code></strong>, <strong><code>D</code></strong> (single products that are already inside that bundle) and if product <strong><code>A</code></strong> (bundle) is in the cart, do not allow to add <strong><code>B</code></strong>, <strong><code>C</code></strong> or <strong><code>D</code></strong> products.</p>
  <p>The answer <a href="https://stackoverflow.com/questions/52756291/woocomerce-remove-a-specific-cart-items-when-adding-to-cart-another-specific-ite/52761869#52761869">Woocomerce Remove a specific cart items when adding to cart another specific items</a> is very close of what I would like.</p>
  <p>How can I do it backwards?</p>