Removing Team Spam from Citadel

Only people with access to the backend of the website can do this. If Rails console is not working, check to make sure user is in the RVM group (should only apply to new users).

  1. Ban the account using the ban script detailed here.
  2. SSH into ozfortress.com.
  3. Navigate to the production directory: cd /opt/citadel/current
  4. Open the Rails console: RAILS_ENV=production bundle exec rails c
  5. Paste the code below, substituting X for the user's ID (eg. 491).
for team in User.find(X).teams do
    team.destroy
end