WordPress at a glance
function is not described

WC_Product_Variable_Data_Store_Interface::delete_variations() public WC 1.0

Delete variations of a product.

{} It's a method of the class: WC_Product_Variable_Data_Store_Interface{}

No Hooks.

Return

Null. Nothing.

Usage

$WC_Product_Variable_Data_Store_Interface = new WC_Product_Variable_Data_Store_Interface();
$WC_Product_Variable_Data_Store_Interface->delete_variations( $product_id, $force_delete );
$product_id(int) (required)
Product ID.
$force_delete(true/false)
False to trash.

Code of WC_Product_Variable_Data_Store_Interface::delete_variations() WC 5.0.0

<?php
public function delete_variations( $product_id, $force_delete = false );