Skip to content

v0.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Oct 14:21
· 7 commits to main since this release

v0.1.0 (2026-10-14)

The first release of Janitor for Payload 3. Janitor compares your storage with your database. It reports orphaned files, missing files and unused documents, and it deletes only what an admin approves. For Payload 4, use the beta tag (1.x).

pnpm add @seshuk/payload-plugin-janitor

Requires Payload 3.83 or later and Node.js 22 or later. Run payload generate:importmap after you add the plugin. Setup and every option are in the README.

Highlights

  • orphans, missing and unused checks for upload and ordinary collections. References come from the database itself. When the plugin is unsure, it counts a document as used.
  • A scan only writes findings. A purge deletes only the findings an admin marked delete, and it checks each one again right before it deletes it.
  • A usage panel on the edit view and a delete guard.
  • Storage adapters for S3, R2, Google Cloud Storage, Azure, Bunny, uploadthing, Vercel Blob and local disk.
  • Runs inside the request, as a Payload job or on a cron.

🚀 Features