@Transactional
  public void remove(KerberosPrincipalEntity kerberosPrincipalEntity) {
    if (kerberosPrincipalEntity != null) {
      EntityManager entityManager = entityManagerProvider.get();
      entityManager.remove(entityManager.merge(kerberosPrincipalEntity));
    }
  }
Remove the entity instance.

@param kerberosPrincipalEntity entity to remove
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/KerberosPrincipalDAO.java