public void remove(KerberosHelper kerberosHelper) throws AmbariException, KerberosOperationException {
    // TODO: Fix the implementation identifying specific identities in the event we need to  pinpoint
    // TODO: certain identities.  This is not currently needed here since we are only handing removing
    // TODO: identities tied to a specific service, component, and/or host. The logic to determine
    // TODO: whether an identity should be removed is handled elsewhere - unfortunately in different
    // TODO: places
    kerberosHelper.deleteIdentities(cluster, components, null);
  }
Remove all identities which are related to the specified set of components and not used by
other services or components
ambari-server/src/main/java/org/apache/ambari/server/controller/utilities/RemovableIdentities.java