Bug 508127

Summary: KDE Connect does not remove old (no longer paired) kpeoplevcards cache, polluting contact-lookup/metadata for SMS
Product: [Applications] kdeconnect Reporter: Odin Vex <odin.vex>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: REPORTED ---    
Severity: minor CC: andrew.g.r.holmes, odin.vex
Priority: NOR    
Version First Reported In: 25.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Odin Vex 2025-08-11 19:16:43 UTC
SUMMARY
I've unpaired old devices that I no longer use and noticed KDE Connect hasn't been clearing old device contact synchronizations from `~/.local/share/kpeoplevcard/kdeconnect-*`. Stale records no longer applicable (some contacts change numbers, etc) will show up because of it.

STEPS TO REPRODUCE
1. Have an old device with synchronized contacts.
2. Pair a new device and synchronize contacts.
2. Remove/unpair old device.
3. KDE Connect SMS will still show unpaired old device contacts (in addition to new device's contacts that may or may not have adjusted names or new numbers, etc).

OBSERVED RESULT
Stale old devices in `~/.local/share/kpeoplevcard/kdeconnect-*`, a lot of old, stale records polluting contact-lookup and metadata for KDE Connect SMS.

EXPECTED RESULT
Remove old kpeoplevcard caches.

SOFTWARE/OS VERSIONS
Windows: Untested
macOS: Untested
Linux/KDE Plasma: 6.3.6
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
Removing old directories relevant to old (unpaired) devices resolves the issue.