in src/main/java/com/gerritforge/gerrit/plugins/account/GerritAccountRemover.java [122:129]
private void removeAccountSshKeys(AccountApi account) throws RestApiException {
List<SshKeyInfo> accountKeys = account.listSshKeys();
for (SshKeyInfo sshKeyInfo : accountKeys) {
if (sshKeyInfo != null && sshKeyInfo.valid) {
account.deleteSshKey(sshKeyInfo.seq);
}
}
}