Permanent Delete from Archive
Canadian Elite Volleyball Academy — Development Update • April 8, 2026
--- title: Permanent Delete from Archive in People Admin ---
Permanent Delete from Archive
What & Why
The People admin page has an archive (soft-delete) system but no way to permanently remove junk records — test data, duplicates, accidental entries. Admins currently archive unwanted records but they accumulate with no cleanup option. Add permanent delete capability to the archived people view so SuperAdmins can periodically clean out records that have no reason to be kept.Done looks like
- When viewing archived people ("Show Archived" toggle), each archived person card shows a "Delete" button alongside the existing "Restore" button
- When one or more archived people are selected via checkboxes, a bulk action bar appears with "Delete Selected" and "Restore Selected" buttons
- Clicking delete (single or bulk) shows a confirmation dialog warning that this action is permanent and cannot be undone, listing the people about to be deleted
- The backend cascades deletion through all related tables (person_relationships, role_assignments, event_registrations, attendance_records, emergency_contacts, profile_messages, skill_evaluations, athlete_profiles, coach_profiles, referee_profiles, ledger_entries, communication_recipients, etc.) before removing the academy_people record
- Only SuperAdmins can perform permanent deletes
- After deletion, the archived list refreshes automatically
Out of scope
- Delete from the main (non-archived) people list — archive first, then delete from archive
- Undo/recycle bin for permanent deletes — the archive itself serves as the safety net
- Batch delete of all archived records at once (must select specific records)
Relevant files
- - - -Canadian Elite Volleyball Academy
elitevolleyball.training
No comments:
Post a Comment