LDAP users are not removed from oc_cards when removed from LDAP

I’m using Nextcloud 12.0 on Ubuntu 14.04 with LDAP for user auth. I have a specific groupOfNames object as the login filter so only users in that object are allowed login.

When I removed someone from that groupOfNames object, they (correctly) disappear from the Nextcloud user list, however they still appear in the search contacts dropdown on the upper right of the page (I am not using the add-on contacts app).

I believe this is due to the fact that the oc_cards table still has entries for these non-existant users anymore.

Can I simply remove those users by hand from that table without messing anything up?

Thanks

I know this is an old post. But I stumbled upon the same.

You can use occ dav:sync-system-addressbook