public void delete(RemoteAmbariClusterEntity entity) {
    remoteAmbariClusterDAO.delete(entity);
    clusterMap.remove(entity.getId());
  }
Remove the cluster entity from registry and database

@param entity
ambari-server/src/main/java/org/apache/ambari/server/view/RemoteAmbariClusterRegistry.java