Collection References

Cascade-deletes or unlinks documents that point to a deleted record

Community 2 5/wk MIT v1.0.2

Installation

pnpm add @lizardglobal/payload-collection-references

About

Collection References handles what happens to other documents when a record they point to is deleted. It finds every relationship and upload field across your collections, including fields nested inside groups, tabs and arrays, and attaches a delete hook to the collections they point to.

By default, a referencing document is deleted along with the record it points to. For each field you can choose instead to clear the field and keep the document. Circular references between collections are tracked during a request, so a cascade does not loop forever.

Package info

Package name
@lizardglobal/payload-collection-references
Latest version
1.0.2
Unpacked size
77 kB
License
MIT
Weekly downloads
5
Last publish
Aug 4, 2026

More from LizardGlobalGH

View profile

Runs Payload create operations with full validation and hooks, then rolls them back

Syncs Discord servers, channels, members and roles into Payload collections

Similar plugins

More in Content

Adds 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