How to Remove ‘Add to Cart’ via Layout Update XML in Magento 2.1

addtocartmagento-2.1magento2xml

I'm trying to figure out how to remove the add to cart from specific items only in Magento 2.1 via "Layout Update XML on the product backend. In magento 1.x it was simple

<reference name="content">
  <remove name="product.info.addtocart"/>
</reference>

However, I haven't found a nice clean and simple method to use for Magento 2.1 – is there something similar to use on a per-item basis via update XML?

EDIT:
Ok, never could figure out anything to put the the layout XML that would remove the Add to Cart button. But I did find a crappy way to do it – CSS.

Add this into the top of the Content on the product you want to hide the add to cart

<style>.box-tocart {display: none}</style>

Far from ideal, but it does get the job sort of done.

Best Answer

This is possible, but the syntax has changed. Try using

<referenceBlock name="product.info.addtocart" remove="true" />


The Magento 2 DevDocs have some info about the new XML instructions.