| layout | default |
|---|---|
| title | Uninstalling Rails Error Dashboard |
| permalink | /docs/UNINSTALL |
This guide explains how to completely remove Rails Error Dashboard from your application.
The fastest way to uninstall is using the automated uninstall generator:
rails generate rails_error_dashboard:uninstallThis will:
- Show you what will be removed
- Provide both manual and automated options
- Ask for confirmation before making changes
- Remove initializer, routes, and migrations
- Optionally drop database tables (with confirmation)
# Keep error data in database (don't drop tables)
rails generate rails_error_dashboard:uninstall --keep-data
# Skip confirmation prompts (USE WITH CAUTION)
rails generate rails_error_dashboard:uninstall --skip-confirmation
# Show manual instructions only (don't perform automated removal)
rails generate rails_error_dashboard:uninstall --manual-onlyIf you prefer to uninstall manually or the automated uninstaller doesn't work, follow these steps:
Open your Gemfile and remove:
gem 'rails_error_dashboard'Then run:
bundle installDelete the configuration file:
rm config/initializers/rails_error_dashboard.rbOpen config/routes.rb and remove:
mount RailsErrorDashboard::Engine => '/error_dashboard'Delete all Rails Error Dashboard migration files:
rm db/migrate/*rails_error_dashboard*.rbOr manually delete these files from db/migrate/:
*_create_rails_error_dashboard_error_logs.rb*_add_better_tracking_to_error_logs.rb*_add_controller_action_to_error_logs.rb*_add_optimized_indexes_to_error_logs.rb*_remove_environment_from_error_logs.rb*_add_enhanced_metrics_to_error_logs.rb*_add_similarity_tracking_to_error_logs.rb*_create_error_occurrences.rb*_create_cascade_patterns.rb*_create_error_baselines.rb*_add_workflow_fields_to_error_logs.rb*_create_error_comments.rb
WARNING: This will permanently delete all your error tracking data!
rails rails_error_dashboard:db:dropThis will:
- Show you how many records will be deleted
- Ask for confirmation
- Drop tables in the correct order (respects foreign keys)
In Rails console or database client:
# Rails console
ActiveRecord::Base.connection.execute('DROP TABLE IF EXISTS rails_error_dashboard_error_comments CASCADE')
ActiveRecord::Base.connection.execute('DROP TABLE IF EXISTS rails_error_dashboard_error_occurrences CASCADE')
ActiveRecord::Base.connection.execute('DROP TABLE IF EXISTS rails_error_dashboard_cascade_patterns CASCADE')
ActiveRecord::Base.connection.execute('DROP TABLE IF EXISTS rails_error_dashboard_error_baselines CASCADE')
ActiveRecord::Base.connection.execute('DROP TABLE IF EXISTS rails_error_dashboard_error_logs CASCADE')Or using ActiveRecord::Migration:
ActiveRecord::Migration.drop_table(:rails_error_dashboard_error_comments, if_exists: true)
ActiveRecord::Migration.drop_table(:rails_error_dashboard_error_occurrences, if_exists: true)
ActiveRecord::Migration.drop_table(:rails_error_dashboard_cascade_patterns, if_exists: true)
ActiveRecord::Migration.drop_table(:rails_error_dashboard_error_baselines, if_exists: true)
ActiveRecord::Migration.drop_table(:rails_error_dashboard_error_logs, if_exists: true)Remove these environment variables from .env or your environment configuration:
# Authentication
ERROR_DASHBOARD_USER
ERROR_DASHBOARD_PASSWORD
# Notifications
SLACK_WEBHOOK_URL
ERROR_NOTIFICATION_EMAILS
DISCORD_WEBHOOK_URL
PAGERDUTY_INTEGRATION_KEY
WEBHOOK_URLS
# Configuration
DASHBOARD_BASE_URL
USE_SEPARATE_ERROR_DB# Development
rails restart
# Or kill and restart your server
kill -9 <pid>
rails server
# Production (depends on your setup)
systemctl restart myapp
# or
touch tmp/restart.txt # For PassengerIf you want to keep your error data but stop tracking new errors:
- Remove the gem from Gemfile and run
bundle install - Keep migrations and database tables - your data remains accessible
- Remove initializer and routes - dashboard won't be accessible
- Restart your application
Later, if you want to view historical data, reinstall the gem and run rails db:migrate.
If you want to keep error logging but remove the dashboard:
- Keep the gem in Gemfile
- Remove the route from
config/routes.rb - Disable middleware in initializer:
config.enable_middleware = false config.enable_error_subscriber = false
After uninstalling, verify everything is removed:
# Should return nothing
grep -r "rails_error_dashboard" config/
ls config/initializers/rails_error_dashboard.rb
ls db/migrate/*rails_error_dashboard*.rb
# Should not include the gem
grep "rails_error_dashboard" Gemfile# Rails console
rails console
# Should return false or raise error
ActiveRecord::Base.connection.table_exists?('rails_error_dashboard_error_logs')# Should not include /error_dashboard
rails routes | grep error_dashboardIf you're seeing errors about missing tables after uninstalling:
- Make sure you've removed the gem from Gemfile and run
bundle install - Check if migrations are still present in
db/migrate/ - Restart your Rails server
- Check your
schema.rborstructure.sql- you may need to regenerate it:rails db:schema:dump
Drop tables in this order:
rails_error_dashboard_error_commentsrails_error_dashboard_error_occurrencesrails_error_dashboard_cascade_patternsrails_error_dashboard_error_baselinesrails_error_dashboard_error_logs(drop last)
Or use CASCADE:
DROP TABLE rails_error_dashboard_error_comments CASCADE;
DROP TABLE rails_error_dashboard_error_occurrences CASCADE;
DROP TABLE rails_error_dashboard_cascade_patterns CASCADE;
DROP TABLE rails_error_dashboard_error_baselines CASCADE;
DROP TABLE rails_error_dashboard_error_logs CASCADE;If you deleted migration files but Rails is still trying to run them:
# Reset migration status
rails db:migrate:status
# If you see pending Rails Error Dashboard migrations, mark them as down
rails db:migrate:down VERSION=<version_number>If you decide to reinstall Rails Error Dashboard later:
# Add to Gemfile
gem 'rails_error_dashboard'
# Install
bundle install
rails generate rails_error_dashboard:install
rails db:migrate
# Your previous data will still be there if you kept the database tablesIf you encounter issues during uninstall:
- Issues: GitHub Issues
- Discussions: GitHub Discussions
We're sorry to see you go! If you have a moment, we'd love to know why you're uninstalling:
- GitHub Discussions: Share your feedback (optional but appreciated)
- GitHub Issues: Report bugs or missing features that led to uninstall
Your feedback helps us improve Rails Error Dashboard for everyone. Thank you! 🙏