How to properly Remove certain CSS / JS files from template

You can use this function that removes woocommerce styles/scripts if it’s your custom template, remember to change YOUR_TEMPLATE_FILE.php to match the specified template you want to remove the woocommerce css/js from it.

add_action( 'wp_enqueue_scripts', 'woo_cleaner', 99 );

function woo_cleaner() {
    remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) );

    //dequeue scripts and styles if template matches
    if ( is_page_template('YOUR_TEMPLATE_FILE.php') ) {
            wp_dequeue_style( 'woocommerce-layout' );
            wp_dequeue_style( 'woocommerce-smallscreen' );
            wp_dequeue_style( 'woocommerce-general' );
            wp_dequeue_style( 'wc-bto-styles' );
            wp_dequeue_script( 'wc-add-to-cart' );
            wp_dequeue_script( 'wc-cart-fragments' );
            wp_dequeue_script( 'woocommerce' );
            wp_dequeue_script( 'jquery-blockui' );
            wp_dequeue_script( 'jquery-placeholder' );
    }
}
remove_action('wp_head', 'wc_generator_tag');