# `PhoenixKit.Notifications.PruneWorker`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.102/lib/phoenix_kit/notifications/prune_worker.ex#L1)

Oban worker that deletes notifications whose underlying activity is older
than the retention window.

Retention is configured via `notifications_retention_days` (defaults to the
value of `activity_retention_days` if unset) — we never outlive the activity
a notification references, and the FK cascade handles the other direction.

Runs daily (wired from `lib/phoenix_kit/install/oban_config.ex`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
