Revalidates Next.js cache tags for documents and their related content on save
Smart Deletion
Cascades deletes, trash and restores through Payload relationship fields
Installation
pnpm add payload-smart-deletion About
Smart Deletion makes deleting one document also handle the documents it points to. You mark a relationship field with a cascade action, and when the parent is deleted, the referenced documents are deleted with it, similar to foreign key actions in SQL databases. Editors do not have to remove comments, attachments or child records by hand.
If the collection uses trash, moving a parent to trash moves its cascaded documents to trash too, and restoring the parent brings them back. Cascades follow chains of relationships, and they work with polymorphic relations and fields nested inside groups, tabs and blocks.
Package info
- Package name
payload-smart-deletion- Latest version
1.0.11- Unpacked size
- 26 kB
- License
- MIT
- Weekly downloads
- 4
- Last publish
- Feb 25, 2026
More from davincicoding-org
View profileTranslation manager for UI messages using ICU MessageFormat syntax
Replaces open user signup with email invitations and password setup
Adds threaded comment discussions with nested replies to collections and globals
Automatic monthly invoicing with PDF output and email delivery for clients
Similar plugins
More in ContentAdds question-based conditions that decide which pages a visitor sees
Opens nested blocks and array rows in stacked panels with breadcrumb navigation
Click-to-edit overlays on the frontend that open the matching field in the admin
Inline editing on your live website for Payload content, with reviewed drafts
Visual drag-and-drop page builder for Payload collections with live canvas editing
Adds a parent field and breadcrumbs to collections so documents can nest inside each other