7.1 KiB
Project Cleanup - Files Marked for Deletion
Overview
This document identifies files that can be safely deleted to clean up the project repository. Files are categorized by type and include reasoning for deletion.
Categories of Files to Delete
1. Debug Files
These are standalone debug/test files that were used during development but are no longer needed in production.
Files to delete:
debug-dropdown.js- Simple dropdown testing scriptdebug-task-insert.mjs- Database task insertion debuggingdebug-disabled/- Entire folder containing disabled debug components:debug-disabled/comprehensive-polish-map/page.jsdebug-disabled/debug-polish-orthophoto/(entire folder)debug-disabled/test-improved-wmts/(entire folder)debug-disabled/test-polish-map/(entire folder)debug-disabled/test-polish-orthophoto/(entire folder)
2. Standalone Test Files
These are one-off test scripts that were used for verification but are not part of the official test suite.
Files to delete:
test-audit-logging.mjs- Audit logging functionality testtest-auth-api.mjs- Authentication API testingtest-auth-detailed.mjs- Detailed auth flow testingtest-auth-pages.mjs- Auth pages testingtest-auth-session.mjs- Session testingtest-auth.mjs- General auth testingtest-complete-auth.mjs- Complete auth flow testingtest-create-function.mjs- Function creation testingtest-current-audit-logs.mjs- Current audit logs testingtest-date-formatting.js- Date formatting utility testingtest-dropdown-comprehensive.html- Comprehensive dropdown HTML testtest-dropdown.html- Basic dropdown HTML testtest-edge-compatibility.mjs- Edge runtime compatibility testingtest-logged-in-flow.mjs- Logged-in user flow testingtest-logging.mjs- General logging testingtest-mobile.html- Mobile interface testingtest-nextauth.mjs- NextAuth testingtest-project-api.mjs- Project API testingtest-project-creation.mjs- Project creation testingtest-safe-audit-logging.mjs- Safe audit logging testingtest-task-api.mjs- Task API testingtest-user-tracking.mjs- User tracking testing
3. Database Migration and Check Scripts
These are one-time migration and verification scripts that are no longer needed after successful execution.
Files to delete:
check-audit-db.mjs- Audit database verificationcheck-columns.mjs- Database column verificationcheck-projects-table.mjs- Projects table verificationcheck-projects.mjs- Projects data verificationcheck-schema.mjs- Schema verificationcheck-task-schema.mjs- Task schema verificationfix-notes-columns.mjs- Notes columns fix (completed)fix-task-columns.mjs- Task columns fix (completed)init-db-temp.mjs- Temporary database initializationmigrate-project-status.mjs- Project status migration (completed)migrate-to-username.js- Username migration (completed)update-admin-username.js- Admin username update (completed)update-queries.ps1- PowerShell query update script (completed)verify-audit-fix.mjs- Audit fix verification (completed)verify-project.mjs- Project verification (completed)
4. Old Database Backups
These are backup files that can be archived or deleted if no longer needed.
Files to delete (with caution):
data/database_old.sqlite- Old database backupdata/database_old2.sqlite- Older database backup
Recommendation: Archive these to external storage before deletion, or keep one as emergency backup.
5. Implementation Documentation
These are detailed implementation notes that document completed work and are no longer needed for ongoing development.
Files to delete:
AUDIT_LOGGING_IMPLEMENTATION.md- Audit logging implementation detailsAUTHORIZATION_IMPLEMENTATION.md- Authorization implementation detailsDROPDOWN_COMPLETION_STATUS.md- Dropdown completion statusDROPDOWN_IMPLEMENTATION_SUMMARY.md- Dropdown implementation summaryEDGE_RUNTIME_FIX_FINAL.md- Edge runtime fix documentationEDGE_RUNTIME_FIX.md- Edge runtime fix detailsINTEGRATION_COMPLETE.md- Integration completion documentationINTEGRATION_SUMMARY.md- Integration summaryMERGE_COMPLETE.md- Merge completion documentationMERGE_PREPARATION_SUMMARY.md- Merge preparation summaryPOLISH_LAYERS_IMPLEMENTATION.md- Polish layers implementation
Files to Keep (Official Documentation)
These documentation files should be retained as they provide ongoing value:
README.md- Project overview and setup instructionsROADMAP.md- Future development roadmapTESTING.md- Testing documentation and proceduresdocs/MAP_LAYERS.md- Map layers configuration guide
Deletion Strategy
Phase 1: Safe Deletions (Immediate)
Delete these files immediately as they have no production value:
- All debug files
- All standalone test files
- All migration/check scripts
- Implementation documentation files
Phase 2: Database Backups (With Caution)
- Archive old database files to external storage
- Keep one backup as emergency rollback option
- Delete after confirming current database is stable
Phase 3: Verification
After deletion:
- Run
npm run buildto ensure no broken references - Run
npm testto ensure test suite still passes - Check for any import errors or missing dependencies
Impact Assessment
Positive Impacts:
- Reduced repository size - Remove ~50+ unnecessary files
- Cleaner codebase - Eliminate confusion from old debug/test files
- Better maintainability - Focus on active code and official documentation
- Improved build performance - Fewer files to process
Potential Risks:
- Lost debugging context - Some debug files might contain useful troubleshooting information
- Missing historical reference - Implementation docs provide context for current architecture
- Accidental dependency - Some files might be referenced in scripts or documentation
Mitigation:
- Backup first - Create a backup branch before deletion
- Gradual approach - Delete in phases with verification between each
- Documentation preservation - Keep essential docs, archive implementation details
Commands to Execute Deletion
# Phase 1: Safe deletions
rm debug-dropdown.js
rm debug-task-insert.mjs
rm -rf debug-disabled/
rm test-*.mjs test-*.js test-*.html
rm check-*.mjs migrate-*.mjs migrate-*.js update-*.js update-*.ps1 verify-*.mjs fix-*.mjs init-db-temp.mjs
rm *_IMPLEMENTATION.md *_COMPLETE.md *_SUMMARY.md EDGE_RUNTIME_FIX*.md POLISH_LAYERS_IMPLEMENTATION.md
# Phase 2: Database backups (after archiving)
# rm data/database_old.sqlite data/database_old2.sqlite
Post-Deletion Checklist
- Run
npm run buildsuccessfully - Run
npm testto ensure test suite passes - Check for any broken imports or references
- Verify all functionality still works
- Update any documentation that referenced deleted files
- Commit changes with descriptive message
Generated on: December 19, 2025 Total files identified for deletion: ~57+ files Estimated space savings: ~5-10MB d:\panel\CLEANUP_PLAN.md