In Magento 2,
How to do a mass deletion of all products attribute values, by attribute_code.
For exemple I want to delete all values for attribute_code = "my_code".
EDIT
I also want to update products attribute values by attribute_code.
I found this :
$productActionObject = $objectManager->create('Magento\Catalog\Model\Product\Action');
$productActionObject->updateAttributes($idArray, array('weight' => 15), 0);
But my weight values are different between each product ids. I want to update attribute according to an array with product_id as key and weight as value:
$array[1] = 14;
$array[2] = 152;
$array[3] = 58;
...
I can't load every products, because there is a lot of values.
Thansk for your help