// connection.execute(new KeysRemoveAll(), API_KEY);
// delete keys individually to avoid race conditions.
// if a key is not found, ignore the failure because it's already been deleted.
for (String k : pubKeyComments) {
try {
connection.execute(new KeyRemove(k), API_KEY);
} catch (RequestFailedException e) {
if (!Http.Status.NOT_FOUND.equals(e.getStatusCode())) {
throw e;
}
}