@Override
    public CommandReport execute(ConcurrentMap<String, Object> requestSharedDataContext) throws AmbariException, InterruptedException {
      deleteDataDirectory(getCommandParameterValue(DATA_DIRECTORY));
      return createCommandReport(0, HostRoleStatus.COMPLETED, "{}", actionLog.getStdOut(), actionLog.getStdErr());
    }
Cleaning identities is asynchronous, it can happen that the service and its configuration is already deleted at this point.
We're extending the actual config with the properties of the latest deleted configuration of the service.
The service configuration is needed because principal names may contain placeholder variables which are replaced based on the service configuration.
ambari-server/src/main/java/org/apache/ambari/server/controller/DeleteIdentityHandler.java