How to bulk delete or deactivate users
SuperAdmin / Club Admin · Bahasa Melayu below
Every user list supports bulk deletion. Deletions are soft — records + audit history preserved.
Steps
- Sidebar → Users (SuperAdmin) or Trainees / Coaches / Parents / Staff / Members (Club Admin)
- Filter to narrow down (e.g. inactive since Jan)
- Tick the checkboxes on rows you want to remove
- Click Bulk Remove (top of list)
- Confirm the count
What happens (per-user)
- User's
is_active = False - Their sessions / attendance / assessments stay
- For trainees: outstanding invoices are cancelled, TraineeClub deactivated, family invoices preserved
- For parents: linked children go inactive too
- For coaches: CoachClub links end (not deleted)
SuperAdmin bulk delete
Users → Bulk Delete operates across roles at once. Very destructive — a mixed list of parents + trainees + coaches gets soft-deleted in one action.
Undo
Any bulk-deleted user can be restored: 1. Filter list by Show inactive 2. Open the user → Restore / Activate
Their history reactivates but category enrollments may need to be re-added manually.
Hard delete
Not available in the UI. Reserved for GDPR requests via database console.
Safety
- Bulk actions ask twice for confirmation with the exact count
- Every action is logged with the operator's name + timestamp
- You can't bulk-delete yourself
Cara bulk padam / deaktif user
Semua senarai user support bulk delete (soft — audit kekal).
Langkah
- Users (SuperAdmin) atau Trainees / Coaches / Parents / Staff / Members (Admin)
- Filter
- Tanda baris
- Klik Bulk Remove
- Confirm
Kesan
is_active = False- Kehadiran + penilaian kekal
- Pelatih: invois belum bayar dibatalkan, family invois kekal
- Ibu bapa: anak juga inaktif
- Jurulatih: CoachClub ditutup
SuperAdmin bulk
Users → Bulk Delete — role campur. Sangat destruktif.
Undo
Filter Show inactive → buka → Restore.
Hard delete
Tidak dalam UI. Console database untuk GDPR.
Selamat
- Confirm dua kali
- Dilog dengan nama operator
- Tak boleh bulk-delete diri sendiri