mirror of
https://github.com/open-webui/terminals.git
synced 2026-11-05 01:37:21 +00:00
[GH-ISSUE #59] feat: Clean up orphaned persistent workspace data when a user is deleted in Open WebUI #32
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/terminals#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @scetu on GitHub (Sep 14, 2026).
Original GitHub issue: https://github.com/open-webui/terminals/issues/59
When a user account is deleted in Open WebUI, their persistent terminal workspace on the orchestrator host is never removed. On the Docker backend this is TERMINALS_DOCKER_DATA_DIR/<user_id> (plus <user_id>/contexts/ for per-chat contexts); on Kubernetes it's the per-user PVC. The orchestrator only learns about users at request time (JWT validation against Open WebUI), so a deletion is invisible to it and the data persists indefinitely.
Why
Data retention / GDPR-style policies require that a deleted user's personal data be deleted too. Today an operator has to manually find and delete the directory, which is easy to miss and leaves no audit trail.
Suggested approach