Skip to content

Deleting user accounts from the console

Glen Horton edited this page Jan 31, 2019 · 1 revision

Note: Deleting a user can have unintended consequences when there are proxies, groups, and other things tied to that user.

  1. Start the rails console:
    bundle exec rails console production or bundle exec rails console production

  2. Delete the user's record:
    Example: User.where(email: '[email protected]').first.delete