Skip to content

Remove 336 media files that no live page uses - #9

Merged
MehranMarxian merged 7 commits into
mainfrom
chore/remove-unused-media
Sep 30, 2026
Merged

MehranMarxian merged 7 commits into
mainfrom
chore/remove-unused-media

Conversation

@MehranMarxian

@MehranMarxian MehranMarxian commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Requested by Mehran · project thread

Before: the site's files took up 344 MB. 336 of the media files (297 MB) weren't used by any live page.

After: the site's files take up 60 MB. Every live page loads exactly what it did before.

What changed

  • Group A, removed: 268 files (210 MB) whose file name appears nowhere in the repo, in any spelling (plain, %20, HTML-escaped).
  • Group B, removed: 68 files (87 MB) mentioned only by draft or archive pages (noindex drafts, archive/ legacy pages). Those pages will now show missing images. The three journal posts in archive/ that are still live are not affected.
  • .gitignore: the five folders that are now empty are added, so local copies you keep there won't be committed again: Images/3D/, Images/AI/stroies about humans/, Images/UnusedImages/3D/, Images/UnusedImages/AI/, Images/blog/golden-gate-glass/.
  • Docs: backlog item 1 in docs/SITE-OVERVIEW.md is marked done, and there's a new changelog line.
  • The full per-file list, as you approved it in the thread, is site/unused-media.md and site/unused-media.csv in the project files.

How it was tested

Risks and follow-ups

  • Your local copy: when you pull main after merging, git deletes these files from your local folder too. Copy anything you want to keep (for example Images/AI/) outside the repo before pulling.
  • Recovery: everything stays in git history. To restore a file: git checkout 3ea5480 -- "<path>".
  • Repo download size: git history still holds the files, so a fresh clone is still big. Shrinking that would need a history rewrite and force-push, which I won't do without a separate OK.
  • Outside links: other websites that linked directly to one of these image URLs (Behance, old posts) will get a 404.

Suggestions

  1. After Lighter pages: WebP images, sized images, WOFF2 font #8 merges, the 51 JPEG/PNG originals it replaced with WebP could be removed the same way (about 15 MB).
  2. Delete or archive the draft home pages at the root, since their images are now gone.

@MehranMarxian MehranMarxian self-assigned this Sep 30, 2026
@MehranMarxian
MehranMarxian merged commit 28940a3 into main Sep 30, 2026
1 check passed
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.

1 participant