Skip to content

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

@wab

Description

@wab

Parent

#32

What to build

Two steps:

  1. 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.
  2. 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

  • HITL review of audit-orphans.json complete (false positives removed)
  • posts/scripts/delete-orphan-assets.js reads the JSON, dry-run by default, --confirm executes
  • Prints summary on completion
  • All confirmed orphans deleted from posts/assets/
  • .DS_Store (and similar) added to posts/.gitignore
  • Cleanup committed atomically with conventional message
  • Re-running node scripts/audit-assets.js reports 0 orphans

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions