Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

I found this one http://stackoverflow.com/a/8672847https://stackoverflow.com/a/8672847. It looks like Magento 1 code but it's work for me.

$product->setData('unwanted_attribute',null);        
$resource = $product->getResource();
$resource->saveAttribute($product,'unwanted_attribute');

I found this one http://stackoverflow.com/a/8672847. It looks like Magento 1 code but it's work for me.

$product->setData('unwanted_attribute',null);        
$resource = $product->getResource();
$resource->saveAttribute($product,'unwanted_attribute');

I found this one https://stackoverflow.com/a/8672847. It looks like Magento 1 code but it's work for me.

$product->setData('unwanted_attribute',null);        
$resource = $product->getResource();
$resource->saveAttribute($product,'unwanted_attribute');
Source Link

I found this one http://stackoverflow.com/a/8672847. It looks like Magento 1 code but it's work for me.

$product->setData('unwanted_attribute',null);        
$resource = $product->getResource();
$resource->saveAttribute($product,'unwanted_attribute');