Skip to content

feat(assets): delete orphan files from posts/assets/#43

Merged
wab merged 3 commits into
mainfrom
feat/assets-orphan-cleanup
May 22, 2026
Merged

feat(assets): delete orphan files from posts/assets/#43
wab merged 3 commits into
mainfrom
feat/assets-orphan-cleanup

Conversation

@wab
Copy link
Copy Markdown
Collaborator

@wab wab commented May 22, 2026

Closes #34. Implements step 2 of the parent #32 plan: HITL-reviewed cleanup of posts/assets/ before migration to the new team-owned blob store.

Summary

  • Added scripts/delete-orphan-assets.js — reads scripts/audit-orphans.json, dry-run by default, --confirm executes. Prints summary of deleted / missing / errors.
  • Deleted 25 confirmed orphans (HITL-reviewed): 20 unused clients/*-{color,dark}.png variants, 4 legacy firstname-only team photos (each already replaced by a firstname-lastname.{jpg,jpeg} version), 1 .DS_Store.
  • Fixed an unrelated parse bug in scripts/audit-assets.js (the JSDoc header was terminated early by a **/* glob inside the comment, breaking node scripts/audit-assets.js).

.DS_Store is already in .gitignore — no change needed.

Verification

  • node scripts/delete-orphan-assets.js — dry-run output matches the 25 expected entries
  • node scripts/delete-orphan-assets.js --confirm — 25 deleted, 0 missing, 0 errors
  • node scripts/audit-assets.js — total 128, used 128, 0 orphans

Test plan

  • Dry-run prints the 25 entries and does not touch the filesystem
  • --confirm deletes all 25 files cleanly
  • Post-cleanup audit reports 0 orphans
  • .DS_Store already covered by .gitignore

@wab wab merged commit 1227762 into main May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(assets): review and delete orphan files from posts/assets/

1 participant