Resetting All Data
Resetting All Data
The Reset All Data function permanently deletes all patient, session, and client data from the system. This is an irreversible operation intended for specific administrative purposes.
What Gets Deleted
The reset truncates the following tables:
| Table | Contains |
|---|---|
messages |
All chatbot message transcripts |
sessions |
All chatbot session records |
leads |
All lead records and scores |
patient_kb_links |
KB article associations per patient |
psychological_history |
Cumulative psychological history per patient |
practitioner_notes |
All practitioner notes |
session_notes |
All structured case notes |
treatment_goals |
All treatment plan goals |
goal_progress |
All goal progress entries |
treatment_plans |
All treatment plans |
client_tokens |
All client authentication tokens |
client_profiles |
All client profile records |
client_accounts |
All client accounts |
patients |
All patient records |
What is NOT deleted: AI provider settings, chatbot configuration, prompts, guardrails, and knowledge base articles are preserved.
When to Use This
Reset is intended for:
- Clearing test/development data before going live
- Removing a demo environment's data
- Complying with a data deletion request that requires full wipe
Do not use this to delete individual client records. For single-client deletion, contact your system administrator to run a targeted SQL deletion.
How to Reset
- Go to Admin → Chatbot tab
- Scroll to the Danger Zone section at the bottom
- Type
RESETin the confirmation field exactly as shown - Click Reset All Data
The system will confirm completion with a notice. All tables listed above will be empty.
Warning: There is no undo. Take a database backup before proceeding if there is any chance you will need the data later.
To backup:
sudo mysqldump biodecoding > /tmp/biodecoding_backup_$(date +%Y%m%d_%H%M%S).sql
No comments to display
No comments to display