Phantom contact appearing in KRunner autocomplete even after deletion Cannot find it or remove it

Hi all,

I have a phantom email contact that keeps showing up in KRunner autocomplete in KDE Plasma. Here’s the situation:

I have a contact that is suggested in krunners PIM cobtact search plugin . This contact is labelled "Autocompleted from sent/received mails) but I cannot seem to find this contact anywhere. When I installed kmail I did find this contact in the trash directory of local folder (in kmail). I have deleted this from here too now but still the contact is suggested in krunner

  • The contact came from an old email in a local folder in KMail.

  • I deleted the email from the local folder.

  • I also unchecked PIM Contact search plugins “Search in contacts from sent and recieved emails too” option

  • I cannot find this contact in Thunderbird’s Address-book.

  • I tried clearing caches and rebuilding everything:

    • Stopped Akonadi and cleared ~/.local/share/akonadi/*

    • Cleared ~/.local/share/kpeoplevcard and ~/.local/share/kactivitymanagerd/resources

    • Cleared ~/.cache/baloo

    • Cleared ~/.cache/krunner/* and restarted KRunner

  • I even tried querying the Akonadi database via MySQL to pinpoint the contact:

    • Connected to Akonadi’s MySQL socket

    • Queried PartTable and PimItemTable for the email

    • Mapped collection IDs to resources in CollectionTable

But the SQL queries returned empty sets, so the contact isn’t stored in Akonadi’s database either.

The contact still appears in KRunner autocomplete. Any advice would be appreciated I’m completely stuck.