I'm making a front-end user delete button but it only removes the user from the current installation and I need to remove them from the entire multisite network so they are able to sign up again with the same email if they decide. Is there a way to do this?
$userid = get_current_user_id();
wp_delete_user( $userid );