Skip to content

Conversation

@douglas-xt
Copy link
Contributor

This PR ensures user backups are deleted when resetting an account.

A new option was added to the account reset flow, following the same pattern as deleting files, folders, shares, and workspaces. When enabled, it removes all backup records and associated devices for the user.

Both credential update flows now delete backups when performing a reset, ensuring backups are cleaned up alongside other user data. The existing backup deletion logic was already available and used during account deactivation, so no new deletion logic was required.

The deletion removes both the backup metadata from the database and the device records associated with those backups, preventing any orphaned references.

@douglas-xt douglas-xt requested a review from jzunigax2 as a code owner January 2, 2026 12:18
@douglas-xt douglas-xt changed the title fix(user): delete backups when resetting user account [PB-5580] fix(user): delete backups when resetting user account Jan 2, 2026
@douglas-xt douglas-xt self-assigned this Jan 2, 2026
@douglas-xt douglas-xt force-pushed the fix/delete-backups-on-account-reset branch from c019948 to 57300e2 Compare January 2, 2026 12:52
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 2, 2026

deleteFolders: true,
deleteShares: true,
deleteWorkspaces: true,
deleteBackups: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non blocking: I'm pretty sure this is now dead code, commenting just so we remember later on to double check and get rid of it

@douglas-xt douglas-xt merged commit 645429c into master Jan 2, 2026
13 of 14 checks passed
@douglas-xt douglas-xt deleted the fix/delete-backups-on-account-reset branch January 2, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants