title: How do I destroy wp_woocommerce_session_ in WordPress?
body: <p>I am allowing non-logged-in customers to order to my website with the code below:</p>
  
  <pre><code>global $woocommerce;
  if(empty($woocommerce-&gt;session-&gt;data)){
     $woocommerce-&gt;session-&gt;set_customer_session_cookie(true);
  }
  </code></pre>
  
  <p>I want to destroy the session after an order has been made because all non-logged-in customers share the same session cookie and this can flood the cart.</p>
  
  <pre><code>function wc_destroy_customer_session() {
   global $woocommerce;
   $woocommerce-&gt;session-&gt;destroy_session();
  }
  
  add_action('woocommerce_thankyou', 'wc_destroy_customer_session', 10, 1);
  </code></pre>
  
  <p>The code above still does not destroy the <code>wp_woocommerce_session_random_hash</code></p>
  
  <p>Do you know how to make the <code>destroy_session</code> work? Thanks</p>
  
  <p>Woocommerce Documentation:<a href="http://woocommerce.wp-a2z.org/oik_api/wc_session_handlerdestroy_session/" rel="nofollow noreferrer">http://woocommerce.wp-a2z.org/oik_api/wc_session_handlerdestroy_session/</a></p>