Parent
#32
What to build
Two steps:
- HITL review of
posts/scripts/audit-orphans.json produced by the audit script. Each entry inspected to confirm it is genuinely unused (no active reference missed by the script). False positives removed from the list before deletion.
- Delete script
posts/scripts/delete-orphan-assets.js:
- Reads
audit-orphans.json
- Dry-run mode (default) prints what would be deleted
--confirm flag executes the deletions via fs.unlink
- Prints summary: deleted count, errors
After execution, commit the deletions with a conventional chore(assets): remove unused client variants and legacy team photos.
Also: add .DS_Store (and any other OS noise found) to posts/.gitignore if not already.
Acceptance criteria
Blocked by
Parent
#32
What to build
Two steps:
posts/scripts/audit-orphans.jsonproduced by the audit script. Each entry inspected to confirm it is genuinely unused (no active reference missed by the script). False positives removed from the list before deletion.posts/scripts/delete-orphan-assets.js:audit-orphans.json--confirmflag executes the deletions viafs.unlinkAfter execution, commit the deletions with a conventional
chore(assets): remove unused client variants and legacy team photos.Also: add
.DS_Store(and any other OS noise found) toposts/.gitignoreif not already.Acceptance criteria
audit-orphans.jsoncomplete (false positives removed)posts/scripts/delete-orphan-assets.jsreads the JSON, dry-run by default,--confirmexecutesposts/assets/.DS_Store(and similar) added toposts/.gitignorenode scripts/audit-assets.jsreports 0 orphansBlocked by