title: Delete woocommerce customer sessions and transients automatically
body: <p>One of my client's site was slowed down too much and its waiting time was 6 to 7 seconds. I found the root cause which was because the <code>wp_options table</code> was filled with a lot of customer sessions data that increased table size to 1.7 GB. It took 6-7 hours to delete 2 million rows. I know I can now delete sessions and transients manually by going to <code>Woocomerce &gt; System Status &gt; Tools &gt; Clear all</code> sessions &amp; Clear transients but I want it to be done automatically after one or two days. Is there anything could be done like creating <code>cron job</code> etc?
  Thanks</p>