The reason for the error should be visible in the error log. You can find it in your hosting area. If necessary, the support of your hosting can help you.
Alternatively, you could also enable debugging in WordPress. How to do this is described here: https://wordpress.org/support/article/debugging-in-wordpress/ – also here the support of your hosting can help you if necessary to edit the file accordingly.
In both cases you should be able to see what the cause is in the logfile.
Thanks, the debugging came up with:
Uncaught WCPay\Exceptions\API_Exception: Error: Error deleting account. Unable to delete live accounts which have completed onboarding. in /home/storage/564/3465564/user/htdocs/wp-content/plugins/woocommerce-payments/includes/wc-payment-api/class-wc-payments-api-client.php:2037 Stack trace: #0 /home/storage/564/3465564/user/htdocs/wp-content/plugins/woocommerce-payments/includes/wc-payment-api/class-wc-payments-api-client.php(1851): WC_Payments_API_Client->check_response_for_errors(Array) #1 /home/storage/564/3465564/user/htdocs/wp-content/plugins/woocommerce-payments/includes/wc-payment-api/class-wc-payments-api-client.php(2479): WC_Payments_API_Client->request(Array, ‘accounts/delete’, ‘POST’, true, true) #2 /home/storage/564/3465564/user/htdocs/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php(1031): WC_Payments_API_Client->delete_account(true) #3 /home/storage/564/3465564/user/htdocs/wp-includes/class-wp-hook.php(324): WC_Payments_Account->maybe_handle_onboarding(”) #4 /home/storage/564/3465564/user/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /home/storage/564/3465564/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /home/storage/564/3465564/user/htdocs/wp-admin/admin.php(175): do_action(‘admin_init’) #7 {main} thrown in /home/storage/564/3465564/user/htdocs/wp-content/plugins/woocommerce-payments/includes/wc-payment-api/class-wc-payments-api-client.php on line 2037
Which is a lot to try and get my head rounds – not sure if this gives anyone any ideas of where I can start –
I recommend getting in touch with WooCommerce’s support about this via https://woo.com/my-account/contact-support/ if you have any of their paid WooCommerce products or https://wordpress.org/support/plugin/woocommerce-payments/ if you do not.