ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Removing all members from a member group?

October 17, 2011 8:39am

Subscribe [4]
  • #1 / Oct 17, 2011 8:39am

    I need to remove all members from an old member group. It asks me to reassign the members to a new member group, but I need to delete them. Is there any way to do this? There’s over 3,000 members and deleting them by the 50 would take a long time.

  • #2 / Oct 17, 2011 8:51am

    Steven Grant

    894 posts

    quickest way would be via the db directly. Find the member group id and then delete members based on that.

    NB. TAKE A DATABASE BACKUP FIRST!

  • #3 / Oct 17, 2011 9:14am

    Brad K Morse

    178 posts

    Exactly what Steven said.

    Back up your database first, then run this query

    delete from exp_members where group_id = 3

    replace 3 with whatever the group_id is.

  • #4 / Oct 17, 2011 12:51pm

    Mark Bowen

    12637 posts

    Hi Reusser Design, LLC,

    As mentioned above the quickest way of doing this is with a database query but please do ensure that you have a solid database backup before performing this operation just incase anything goes wrong and then you can always get back to where you were prior to running the query.

    Does the information above help at all. Are you comfortable running queries directly on your database?

    Thanks to Steven and Brad for the help above.

    Mark

  • #5 / Oct 17, 2011 1:07pm

    Guys,

    Thanks a ton for the responses. I was in a quick bind and I ended up deleting them all by 50s. Took a little longer than I wanted, but it helped me to stay outside the database since I’m not so familiar with it.

    Feel free to close this, but hopefully one day there will be a way to do a mass delete outside of the database for novices like myself!

  • #6 / Oct 17, 2011 1:33pm

    Sue Crocker

    26054 posts

    Closing thread.. If anything else comes up, please do let us know in a new thread..

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases