I was hoping there was another way. Like you state, there is a lot of duplicate code there. I’m using buddy press and they you can give the user a way to delete their account using members/%username%/settings/delete-account/ It eventually calls wp_delete_user, but I don’t see a way to specify an ID to transfer the posts to.