Skip to content

Instantly share code, notes, and snippets.

View bh-ref's full-sized avatar

bh-ref

  • Zurich, Switzerland
View GitHub Profile
@bh-ref
bh-ref / RemoveOptions.php
Last active December 28, 2021 21:06
Remove/Delete Product Attribute Options in Magento 2
<?php
namespace Vendor\ModuleName\Options;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Catalog\Model\ResourceModel\Eav\AttributeFactory;
class RemoveOptions
{