Title: Delete WooCommerce Analytics data
Last modified: January 16, 2023

---

# Delete WooCommerce Analytics data

 *  Resolved [erniecom](https://wordpress.org/support/users/erniecom/)
 * (@erniecom)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/delete-woocommerce-analytics-data/)
 * I try to anonymise a production instance of WooCommerce for debug access by third
   party plugin authors. My attempts will all be part of a bash command line script
   on my linux server, used to prepare a test version from a backup copy of the 
   production site, but without personal data. I successfully could remove users
   and orders from database but now I discover that all the sales statistics are
   still available in WooCommerce’ Analytics including sales totals, names and figures.
   Where do I find this in database? I would like to complete my database queries
   to remover these too. 
   In stackoverflow I received a suggestion to use WooCommerce
   > Status > Tools > Clear Analytics Cache and transient data. WooCommerce tools
   are also available from the command line that’s why I considered them as option.
   I tried both tools both and ways without the desired results.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [anastas10s](https://wordpress.org/support/users/anastas10s/)
 * (@anastas10s)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/delete-woocommerce-analytics-data/#post-16385060)
 * Hi there [@erniecom](https://wordpress.org/support/users/erniecom/)
 * As I understand, you’d like to remove the WooCommerce Analytics data from the
   test version that the third party plugin authors will have debug access. Correct?
 * If you add the following code to your wp-config.php file, WooCommerce will not
   track any data:
 * `define( ‘WC_Disable_Tracking’, true );`
 * Furthermore, [the documentation section linked right here](https://woocommerce.com/document/woocommerce-analytics/#section-20)
   details how to clear the analytics cache.
 * I trust that points you in the right direction, but if you have more questions,
   let us know. We’re happy to help.
 *  Plugin Support [Gabriel – a11n](https://wordpress.org/support/users/gabrielfuentes/)
 * (@gabrielfuentes)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/delete-woocommerce-analytics-data/#post-16430934)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Delete WooCommerce Analytics data’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Gabriel – a11n](https://wordpress.org/support/users/gabrielfuentes/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/delete-woocommerce-analytics-data/#post-16430934)
 * Status: resolved