• Resolved Bettina

    (@bettinag)


    Hi,

    I have no longer any need for a Woocommerce Shop and want to delete it completely from my installation. As described I’ve added define( ‘WC_REMOVE_ALL_DATA’, true); to my wp-config.php.

    Now when trying to delete the deinstall script ist not work and hangs up without any error message.

    What to do now? I want to remove woocommerce COMPLETE. That means every order, product, status update….. How can I do this manually? Need any help.

    Thanks,
    Bettina

Viewing 9 replies - 1 through 9 (of 9 total)
  • corsonr

    (@corsonr)

    Automattic Happiness Engineer

    Hi @bettinag,

    Can you please try to re-run the uninstall process, still with define( ‘WC_REMOVE_ALL_DATA’, true); added to my wp-config.php with all other extensions disabled and with a default theme?

    Thanks

    Thread Starter Bettina

    (@bettinag)

    Hi Remi,

    thank you for your hint. I’ve tried this without any success ;-(.

    Have you a better way to remove woocommerce completely from system and database?

    Best wishes,
    Bettina

    corsonr

    (@corsonr)

    Automattic Happiness Engineer

    Hi @bettinag,

    Well, that is supposed to work ?? – If not, I guess that would require some manual actions. You could use WP-CLI to automate some tasks like bulk deleting product, orders, etc…

    wp post list --field=ID --post_type=product --posts_per_page=2000 | xargs wp post delete --force

    for instance this would delete all products, you can then modify the command for order, users, attributes…

    corsonr

    (@corsonr)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thread Starter Bettina

    (@bettinag)

    Hi,

    no my problem is not solved and I have never worked with WP-CLI before ;-( Think that’s more a developer solution, for persons who has deep insights about tables and structures. Is there a clear documentation?

    I am really sad about woocommerce with wordpress and how the problems are solved.

    I also have Error after click Delete button and Uninstall don’t work with define( ‘WC_REMOVE_ALL_DATA’, true );.
    Latest WordPress
    Latest WooCommerce
    All Plugins are Disabled
    PHP 8

    In my Log i see error:

    [18-Aug-2021 20:45:46 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "WC_PLUGIN_BASENAME" in /wp-content/plugins/woocommerce/includes/class-wc-install.php:181
    Stack trace:
    #0 /wp-content/plugins/woocommerce/includes/class-wc-install.php(1862): WC_Install::init()
    #1 /wp-content/plugins/woocommerce/uninstall.php(33): include_once('/home/g/grishat...')
    #2 /wp-admin/includes/plugin.php(1248): include_once('/home/g/grishat...')
    #3 /wp-admin/includes/plugin.php(965): uninstall_plugin('woocommerce/woo...')
    #4 /wp-admin/includes/ajax-actions.php(4596): delete_plugins(Array)
    #5 [internal function]: wp_ajax_delete_plugin('')
    #6 /wp-includes/class-wp-hook.php(303): call_user_func_array('wp_ajax_delete_...', Array)
    #7 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
    #8 /wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #9 /wp-admin/admin-ajax.php(187): do_action('wp_ajax_delete-...')
    #10 {main}
      thrown in /wp-content/plugins/woocommerce/includes/class-wc-install.php on line 181
    Mirko P.

    (@rainfallnixfig)

    Hi @webparaplan,

    This thread is closed, please create a new topic on the forum and we’ll be happy to have a look and assist you with your issue.

    Thanks!

    Thread Starter Bettina

    (@bettinag)

    Is there no fix in the meantime? Closing a thread is easy! ;-(

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi @bettinag ??

    An easy way to solve this would be by asking your hosting to do it for you.

    They should do it in a blink of an eye. ??

    Cheers!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Deleting….. Not working – Problem’ is closed to new replies.