Use the following clean-up scripts to help locate redundant queries, widgets, dashboards and alerts within Redash. This was mostly to keep lineage lean and reduce discovery of redundant reports and data:
- locate_expired_assets.sql - Finds expired queries and other assets downstream from that query
- locate_expired_dashboards.sql - Finds unused dashboards older than 1 year
- locate_expired_alerts.sql - Finds unused alerts not executed older than 1 year
- locate_expired_users.sql - Finds unused users not logged older than 90 days
- locate_insecure_tokens.sql - Finds API tokens older than 90 days still in use
- locate_orphaned_connections.sql - Finds orphaned data connections with no queries