🔧 Quick Cleanup Commands:
# Drop all orphaned tables (⚠️ DANGEROUS!)
python manage.py dbsync --cleanup-orphaned --auto-approve
python manage.py dbsync --cleanup-orphaned --auto-approve
# Backup before cleanup
python manage.py dbsync --cleanup-orphaned --backup
python manage.py dbsync --cleanup-orphaned --backup
# Interactive cleanup (recommended)
python manage.py dbsync --cleanup-orphaned
python manage.py dbsync --cleanup-orphaned
{% for table in orphaned_tables %}
{% endfor %}
{{ table.name }}
Rows:
{{ table.row_count|default:"Unknown" }}
Size:
{{ table.size|default:"Unknown" }}
Columns:
{{ table.column_count|default:"Unknown" }}
Last Modified:
{{ table.last_modified|default:"Unknown" }}
{% if table.estimated_origin %}
Likely Origin:
{{ table.estimated_origin }}
{% endif %}