Skip to content

Add Soft Delete or Archive for User Data #219

@Baskarayelu

Description

@Baskarayelu

Description:

Support soft-delete or archive for user records and preferences so accounts can be “deactivated” without losing data for compliance or recovery.

Requirements

  • Add deletedAt: Date | null (or archivedAt) to users table; add index for active users (where deletedAt is null)
  • All user queries (profile, preferences) filter by deletedAt is null unless admin
  • POST /api/user/deactivate (protected): set deletedAt for current user; optionally anonymize or retain for N days per policy
  • No hard delete of user row by default; document retention and purge policy
  • GET /api/user/profile returns 404 or 410 after deactivation

Acceptance Criteria

  • Soft-delete/archive field and queries implemented
  • Deactivate endpoint and auth in place
  • Retention and purge policy documented

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions