• Resolved andyt1980

    (@andyt1980)


    Hi,
    I’ve cloned an existing Woocommerce website to use as a template/starting point. However, I want to clean out all of the old Woocommerce data (orders, customers etc) and start with a clean install of Woocommerce.

    I’ve tried manually deleting all the orders and also tried adding the line
    define (‘WC_REMOVE_ALL_DATA’, true); to the wp-config file and uninstalling the plugin. However, with that line in place when I try to uninstall the plugin it just gets stuck on ‘deleting….’ and doesn’t complete.

    If I uninstall and delete the plugin without that line in the config file when I reinstall Woocommerce, its still showing ‘All (37)’ above the order listings even though there are no orders listed and none in the bin.

    See screenshot: https://prnt.sc/spZMmQx7BGcq

    I’ve also looked in the database and can’t see any tables that are still populated. Also tried clearing all transients under the tools area.

    Any further assistance would be very much appreciated.

    Thanks.

    • This topic was modified 2 years, 7 months ago by andyt1980.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @andyt1980,

    It sounds like the uninstall process wasn’t successfully completed. Can you please try to install again WooCommerce core and subsequently re-run the uninstall process? These are the steps:

    1. Make a full backup
    2. Install and activate WooCommerce
    3. Disable all other plugins/extensions and change the theme to Storefront
    4. Open your site’s wp-config.php file and add the following constant above the “That’s all, stop editing” comment.

    define( 'WC_REMOVE_ALL_DATA', true );
    /* That’s all, stop editing! Happy publishing. */

    5. Deactivate and remove WooCommerce.

    You can find a more detailed explanation on how to remove WooCommerce here:

    https://woocommerce.com/document/installing-uninstalling-woocommerce/#uninstalling-woocommerce

    Let us know how it goes.

    Thread Starter andyt1980

    (@andyt1980)

    Thank you, I’ve tried following those steps but with that extra line in the wp-config.php file the plugin wont delete, it just hangs on ‘Deleting…’

    If I remove that line then the plugin deletes successfully but still leaves that ghost ‘All (37)’.

    Hi @andyt1980

    Thanks for trying reinstalling.

    If I remove that line then the plugin deletes successfully but still leaves that ghost ‘All (37)’

    Can you please check if clearing the cache memory helps get rid of the ‘All (37)’? You can clear your browser’s cache as explained in this guide: https://wordpress.com/support/browser-issues/#clearing-your-browser-cache

    The following article may also help:
    https://www.wpbeginner.com/beginners-guide/how-to-clear-your-cache-in-wordpress/

    Thread Starter andyt1980

    (@andyt1980)

    Hi,
    I’ve tried clearing browser and server cache but it doesn’t help, even tried using a different computer which has never visited the website and it still shows that ghost 37 orders.

    Hello,

    That is really odd. Can you please provide the following information?

    Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.?

    Error Log: Share a copy of any fatal error log found under WooCommerce > System Status > Logs (if available).

    Let us know.

    We haven’t heard back from you in a while, so I’m marking this thread closed for now – we’ll be here if and/or when you are ready to continue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing Legacy Data’ is closed to new replies.