Delete variation programmatically

PHOTO EMBED

Tue Jan 18 2022 08:17:48 GMT+0000 (UTC)

Saved by @igor #drupal #php

$variation = \Drupal::entityTypeManager()->getStorage('commerce_product_variation')->load(id)->delete();
content_copyCOPY