users – wp_delete_user – huge overhead in Buddypress?

Question

I am running a Buddypress Website with 8k Users and I want to create a fresh installation as a base for a new project.

I do not want to touch the DB directly because I feel it’s dirty and could potentially create conflicts – hence I wanted to clean all users except the administrators just once.

Running wp_delete_user takes ages on a managed cloud server – basically my scripts are timing out after 5minutes with just 300 users deleted. Is it normal that this API function is so expensive? I use it without any reassign option!

Thanks in advance

0
Tim 2 months 2021-11-30T01:15:41-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse