#!/usr/bin/env python
"""
Cleanup script to remove temporary fix files
"""
import os

def cleanup_files():
    """Remove temporary fix and debug files"""
    files_to_remove = [
        'debug_documents_issue.py',
        'fix_all_page_issues.py', 
        'test_page_fixes.py',
        'cleanup_fix_scripts.py'  # This script itself
    ]
    
    removed_count = 0
    for filename in files_to_remove:
        if os.path.exists(filename):
            try:
                os.remove(filename)
                print(f"✅ Removed: {filename}")
                removed_count += 1
            except Exception as e:
                print(f"❌ Could not remove {filename}: {e}")
        else:
            print(f"⚠️  File not found: {filename}")
    
    print(f"\n🧹 Cleanup complete. Removed {removed_count} files.")
    print("📋 Keeping: PAGE_FIXES_SUMMARY.md (for reference)")

if __name__ == "__main__":
    print("🧹 CLEANING UP TEMPORARY FIX FILES")
    print("=" * 40)
    cleanup_files()