WooCommerce programmatically delete variation code example
Example: remove effect woocommerce-variation
$(document).on('show_variation', '.cart.variations_form', (e) => {
let hasText = !!$.trim($('.woocommerce-variation.single_variation').text())
$('.woocommerce-variation.single_variation').stop().removeAttr('style').toggle(hasText)
}).on('hide_variation', (e) => {
$('.woocommerce-variation.single_variation').stop().hide()
})