Skip to content

Releases

v1.0.0-beta.2

v1.0.0-beta.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Oct 15:43

v1.0.0-beta.2 (2026-10-22)

⚠️ Breaking Changes

⚙️ CI

v1.0.0-beta.1

v1.0.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 14 Oct 14:27

v1.0.0-beta.1 (2026-10-14)

The first beta of Janitor for Payload 4. 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 3, use 0.x. It keeps getting critical and high-severity security fixes.

pnpm add @seshuk/payload-plugin-janitor@beta

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.

Breaking changes from 0.x

  • Requires Payload 4.0.0-beta.0 or later, Next.js 16.4 or later and Node.js 24.15 or later. Canary builds are not supported.
  • Payload 4 always adds the prefix field. A collection stored without a prefix that reports orphans or missing needs prefix: ''.
  • On an upload collection, the usage panel now shows first by default, not in the sidebar.

⚠️ Breaking Changes

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 14 Oct 14:21

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