@Override
    public void delete(final long id) {
        val entry = searchLdapAccountsBy(id);
        if (entry != null) {
            val accounts = mapAccountsFromLdapEntries(List.of(entry));
            accounts.removeIf(device -> device.getId() == id);
            updateAccounts(accounts, entry);
        }
    }
This is {@link LdapGoogleAuthenticatorTokenCredentialRepository}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-gauth-ldap/src/main/java/org/apereo/cas/gauth/credential/LdapGoogleAuthenticatorTokenCredentialRepository.java