# Plan: Delete Backup/Old Page Files **Priority:** LOW - Code cleanup **Dependencies:** None **Affects:** Code maintenance, repository cleanliness ## Overview Remove all backup and old page.tsx files that are no longer needed. These files clutter the codebase and can cause confusion. ## Files to Delete Need to search for: - `*.backup.*` files - `*.old.*` files - `*-old.*` files - Files with "backup" in the name - Commented-out old implementations ## Search Strategy ```bash # Find all backup files find . -name "*.backup.*" -o -name "*.old.*" -o -name "*-old.*" # Find files with "backup" in name find . -iname "*backup*" # Check git status for renamed files git status | grep -i backup ``` ## Implementation Steps 1. **Search for backup files** ```bash find app -name "*.backup*" -o -name "*.old*" find components -name "*.backup*" -o -name "*.old*" find lib -name "*.backup*" -o -name "*.old*" ``` 2. **Verify files are not imported anywhere** ```bash # For each found file, check if it's imported grep -r "import.*from.*filename" . ``` 3. **Delete files** ```bash git rm app/chat/page.tsx.backup # ... repeat for each file ``` 4. **Check for commented-out code** - Review recent commits for large commented blocks - Remove if no longer needed 5. **Commit deletion** ```bash git commit -m "chore: Remove backup and old files" git push origin development ``` ## Success Criteria - ✅ No `.backup` files in codebase - ✅ No `.old` files in codebase - ✅ No files with "backup" in name - ✅ Code still builds successfully - ✅ All tests still pass ## Files to Delete (Will be determined during search step) Example: 1. `app/chat/page.tsx.backup` 2. Any other discovered backup files