Delete a Staff Member
Permanently remove a staff member after transferring their records.
Prerequisites
- ClinicAdmin or OrganizationAdmin role
Steps
- Navigate to Staff Management.
- Select the staff member to delete.
- Click “Delete.”
- The system displays all reassignable records:
- Sessions (assignedTo)
- Leads (assignedTo)
- Appointments (assignedTo)
- For each category, select a recipient staff member (must be active, same clinic).
- You can assign different categories to different recipients.
- Confirm the deletion.
- The system atomically reassigns all records and marks the staff member as
Inactive.
What Happens After Deletion
- The staff member cannot log in (all tokens invalidated).
- The staff record is NOT physically deleted — it’s retained for audit log attribution.
- Audit log entries still show the original staff member’s name.
- Attribution fields (createdBy, authoredBy) on records are never changed.
- Only the
assignedToresponsibility fields are transferred.
Restrictions
- You cannot delete the last active ClinicAdmin in a clinic.
- You cannot delete the last active OrganizationAdmin in an organization.
- Deletion is blocked until all reassignable records have a recipient assigned.