Bug 520220 - Deleting app data is a destructive process and is irreversible
Summary: Deleting app data is a destructive process and is irreversible
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (other bugs)
Version First Reported In: 6.6.4
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Nate Graham
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2026-05-16 01:06 UTC by Justin Zobel
Modified: 2026-05-19 13:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.8.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Zobel 2026-05-16 01:06:36 UTC
DESCRIPTION
Apps are easy to re-install, data is not.

One accidental click on the Delete Application Data and all of a user's two factor authentication keys can be gone. No undo, not in the Trash.

This can happen with Keysmith, the KDE 2FA app.

POSSIBLE SOLUTIONS
1. Use the trash, simple, expected.
2. Offer an undo after deletion
Comment 1 Nate Graham 2026-05-18 21:36:57 UTC
https://invent.kde.org/plasma/discover/-/merge_requests/1329 should improve this.
Comment 2 Nate Graham 2026-05-19 13:20:51 UTC
Git commit 8c531d21ea88d2cbac39105b84dc607dfa23ef32 by Nate Graham.
Committed on 18/05/2026 at 21:31.
Pushed by ngraham into branch 'master'.

Flatpak: trash old user data and settings rather than deleting instantly

Instant deletion is dangerous here as we provide a big obvious button to
do it. The button uses correct iconography and text to indicate that
this is what it will do, but it's still destructive with no undo, and
users clicking accidentally could use data.

Instead, send the data and settings to the trash, where it could be
retrieved later.
FIXED-IN: 6.8.0

M  +1    -0    libdiscover/backends/FlatpakBackend/CMakeLists.txt
M  +12   -4    libdiscover/backends/FlatpakBackend/FlatpakResource.cpp
M  +3    -3    libdiscover/backends/FlatpakBackend/qml/FlatpakRemoveData.qml

https://invent.kde.org/plasma/discover/-/commit/8c531d21ea88d2cbac39105b84dc607dfa23ef32