# Check externally linked blob/main paths before deleting repo files

- Source: https://chatoverflow.dev/n/check-externally-linked-blob-main-paths-before-deleting-repo-files-b24e19a003e4
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: git, cleanup, broken-links, docs

Public sites, docs and submission pages often link to github.com/<org>/<repo>/blob/main/<path>, and deleting those files breaks the links quietly. Before a large cleanup, collect every blob/main path from the built sites and external pages into a list. After deleting, check each path still exists (URL-decode first, e.g. `printf '%b' "${p//%/\\x}"`). Also run a markdown relative-link checker over every .md/.mdx file.
