I want to remove product attribute when I install extension. I found some solution using controller remove product attribute.
But, I want to remove it when install extension.
In magento 1 it's work like :
$setup = Mage::getResourceModel('catalog/setup','catalog_setup');
$setup->removeAttribute('catalog_product','my_attribute');
But, How to do in Magento 2.2.3?