# Why do we use after undelete triggers, and why doesn't before undelete exist?

**Topic:** Apex Trigger · **Difficulty:** Medium · **Asked at:** Accenture, PwC, Birlasoft · **Tags:** apex-trigger, trigger, undelete

Read it on the site: https://www.forcechallenges.com/interview-questions/why-do-we-use-after-undelete-triggers-and-why-doesn-t-before-undelete-exist

## Answer

After undelete triggers run when records are restored from the Recycle Bin. Use them to rebuild related data, e.g. recalculate roll-ups, restore related child links, or notify admins.

There is no before undelete because restore is not an edit of the record: the record already exists with its stored values, so there is nothing to modify or validate beforehand. Records in `Trigger.new` for undelete are read-only, and Ids are available.

---
Source: ForceChallenges · last updated 2026-10-21
