• Resolved njsamsatli

    (@njsamsatli)


    Hi,

    I’m trying to uninstall WooCommerce using the WP backend. I added the line:

    define (‘WC_REMOVE_ALL_DATA’, true);

    to my wp-config.php file and then deactivated it. However, when I press the Delete link, the only thing that happens is the link changes to “Deleting…”. Nothing else happens. If I click on the “Deleting…” link, then it behaves just as before, when it was “Delete”. If I refresh the page, then the link goes back to “Delete”. The plugin remains installed no matter what I do.

    Does anyone know how to get this to uninstall properly?

    Thanks…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi there!

    Thanks for reaching out.

    Make sure you’re adding define( 'WC_REMOVE_ALL_DATA', true ); above the “That’s all, stop editing” comment as described here:

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

    Follow the steps below if you see it still doesn’t work:

    1. Remove the constant define( 'WC_REMOVE_ALL_DATA', true ); in your wp-config.php file
    2. Reinstall WooCommerce or copy/paste the plugin folder via FTP (instructions here)
    3. Deactivate all other plugins
    4. Open wp-config.php and copy/paste define( 'WC_REMOVE_ALL_DATA', true ); above the “That’s all, stop editing” comment
    5. Deactivate and delete WooCommerce

    I hope this works for you.

    Thread Starter njsamsatli

    (@njsamsatli)

    Thanks Mirko,

    I tried doing this just now and it still doesn’t work. This is the error I’m getting:

    “Deletion failed: There has been a critical error on this website.Learn more about troubleshooting WordPress.”

    Without the line in wp-config.php, I can uninstall WooCommerce but the tables are left behind in the database.

    Have you seen this error before and is there any other way to delete the WooCommerce tables from the database?

    Thanks…

    Thread Starter njsamsatli

    (@njsamsatli)

    This is one of the error messages in the log:

    PHP message: PHP Fatal error: Uncaught Error: Call to undefined function wc_get_container() in /home/…/public_html/wp-content/plugins/woocommerce/includes/class-wc-install.php:1465

    Hello.

    Sorry to hear about this.

    For better assistance please share a copy of your site’s System Status: You can find it by navigating to 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 (In case any other error is being displayed).

    Let us know thanks.

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

The topic ‘Cannot delete/uninstall WooCommerce plugin’ is closed to new replies.