how to delete woocommerce code example
Example 1: remove upsell products woocommerce
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 );
Example 2: completely remove woocommerce
define( 'WC_REMOVE_ALL_DATA', true );