From 3eadd48a0307d5fdc45eca488654c6a54bc4bac1 Mon Sep 17 00:00:00 2001 From: Alzer Del Zeyger <75466035+Dx-Alz-xD@users.noreply.github.com> Date: Thu, 12 Nov 2026 20:09:43 +0530 Subject: [PATCH] feat(scripts): find and remove papers whose file is gone adds scripts/remove-ghost-papers.mjs, run with npm run ghost-papers. it sends a HEAD request to the file_url of every record in papers and admins, the same check the viewer does, and lists the ones that answer 404. anything else (403, 5xx, timeouts, no url) is left alone it is a dry run unless --delete is passed. with --delete it saves the full records to ghost-papers-