in src/main/java/com/gerritforge/gerrit/plugins/account/DeleteAccount.java [75:79]
private void assertDeletePermission(int accountId) throws AuthException {
if (!remover.canDelete(accountId)) {
throw new AuthException("not allowed to delete account " + accountId);
}
}