Bulk Delete Users

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
11/20/2012 12:45:24 PM
Gravatar
Total Posts 30

Bulk Delete Users

I have seen a few posts about wanting to bulk edit users but it seems there is nothing in place other than using SQL database tools.  I have a large list of members that I need to delete.  It would be ideal if I could do it through the front end, but I don't mind doing it in SQL.  Is the mp_Users table the only table I need to delete the users from?  I'm sure they don't have any activity. 

Thanks,

Rob

11/23/2012 9:20:28 AM
Gravatar
Total Posts 18439

Re: Bulk Delete Users

If the users don't have any activity then most likely the only table where they exist is mp_Users. If they were created through the UI they may also have rows in mp_UserProperties, if they have ever logged in they may have rows in mp_UserLocation.

We don't have a way to bulk delete users form the UI other than when deleting a site from a multi site installation there is a site pre-delete event handler that can delete any feature specific data associated with the user.

Be carefull with your query and be sure to backup the db first. You could delete all users by siteid but you want to make sure you leave an admin user, so you would need to know the id of the site and the user to keep then it would be

DELETE FROM mp_Users WHERE SiteID = x and UserID <> y

Hope that helps,

Joe

11/23/2012 12:58:43 PM
Gravatar
Total Posts 30

Re: Bulk Delete Users

Thanks for the info Joe.

Rob

You must sign in to post in the forums. This thread is closed to new posts.