What do you mean by deleted manually?
If you mark the account as a spammer, they can’t log in with that ID/email again. What’s the goal in deleting them?
I mean, if I deleted a member of my site myself, through the backend, would all of the members content get deleted too, including activity stream items and their forum posts.
I deleted a test account that’s all and all of the test forum posts stayed behind, attributed by a random avatar.
I would expect the behaviour to be that all remnants of that user be deleted with their account but that doesn’t appear to happen.
This would be useful for spammers or users who pose an annoyance to the rest of the community.
Any thoughts?
@rossagrant
BP is a plugin that creates its own metadata and db tables to store that data. So, deleting a user via the WP backend simply removes the user from being associated with your site. But it does not delete BP metadata associated with that same user in the BP part of things.
For all user metadata to be deleted from BP tables, you must delete the user via the “Delete [username]” link in the “Admin Options” menu that appears in the adminbar when visiting the user’s profile. I just deleted a test user from my sandbox and watched as all activity items disappeared.
Not accurate. Anything that happens on delete in BP should hook into both situations. If it doesn’t, it’s a bug.
@djpaul
Thanks for reminding me of my favorite prayer: “Oh Lord, help me to keep my big mouth shut until I know what I am talking about.”
@rossagrant
Sorry if I led you astray
@DJPaul @pcwriter thanks for the input guys.
Deleting a member through the WP dashboard most certainly DOESN’T delete any of their BP entries.
Their username is deleted from the member’s list and their avatar etc goes, but from what I see all of their forum posts remain, without a username and a random avatar associated with the posts.
Is this a bug then Paul? Anything I need to do to file it?
Deleting users from the BP admin bar does however clean the site of activity and forum posts. I guess this behaviour needs to be linked in with the WP dashboard too.
Are you on BP 1.2.8? I think we may have fixed this in trunk, it rings a bell. Best to report it on https://buddypress.trac.wordpress.org/ please so we can check it out. Let us know version numbers of WP/BP that you are using at the moment.