Remove Demo Content
Safely remove sample routes, catalogs, data, and assets after your real application structure is ready.
What you will learn
- Remove unused modules without broken links.
- Identify catalog-driven references.
- Keep the build and release clean.
Remove in dependency order
A route may also be referenced by navigation, topbar search, documentation, tests, or a catalog. Remove references before deleting the page.
- Remove the sidebar item from lib/navigation.ts.
- Remove related entries from the matching lib/*-catalog.ts file.
- Remove links from pages and components.
- Remove or update tests that intentionally cover that feature.
- Delete the unused route and feature component.
- Remove assets only after confirming no remaining reference.
- Run pnpm check.
Find references
Search by both route and component name before deletion.
bash
rg -n "/calendar|CalendarShowcase|calendar-" app components lib testsKeep useful foundations
A demo page can be removed while its general-purpose patterns remain useful. Keep shared dialog, form, table, status, and responsive patterns if real features depend on them.