Deleting user accounts from the console - uclibs/ucrate GitHub Wiki

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

⚠️ **GitHub.com Fallback** ⚠️