Skip to content

Automated UserSession cleanup on User deletion #12367

Closed
2 of 2 issues completed
Closed

Description

@offtherailz

Description

Currently, deleting a user can leave orphaned UserSession records in the database. These resources are ephemeral and personal, so they should be cleaned up automatically to maintain database integrity.

A targeted "Automated Cascade Cleanup" for sessions. When a user is deleted, the system should automatically purge any associated UserSession records without requiring manual transfer or admin confirmation.

A full ownership management UI was considered but pivoted to this lean approach to focus specifically on the immediate data inconsistency issue.

Additional context
This Epic tracks both backend and frontend tasks:

  • Backend: API enhancement to support cascadeResourceDelete.
  • Frontend: Integration in the User Manager deletion flow.

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Metadata

Metadata

Labels

AcceptedNew Feature

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions