In Magento 2.4.2, when i am going to update products programmatically, it’s removed customizable options automatically
Below code for your reference:
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$productCollection = $objectManager->create('MagentoCatalogModelResourceModelProductCollection');
$collection = $productCollection->addAttributeToSelect('*')->load();
foreach ($collection as $product){
$product->save();
}
It’s automatically removed existing customizable options