import { purgePress } from "@/lib/library/presses.mjs"; import { ask, press } from "@/lib/library/route"; export const dynamic = "force-dynamic"; // POST { lib, topic?, dryRun: true } -> what would be removed: { posts, files, bytes, confirm, sentence, … } // POST { lib, topic?, confirm } -> removed, when the set is still the one the dry run showed // // THE POSTS LIBRARY PAGE'S PURGE (lane posts-library): the editor's // `purge-trending`, the OPERATOR's, in two presses. umtool removes nothing // itself. Only dropped posts' captures go; the judgements stay, and media // another post still uses is left. export async function POST(request: Request) { return press(request, (body) => purgePress(ask, body)); }