public void removeInstanceData(String key) {
    ViewInstanceDataEntity entity = getInstanceData(key);
    if (entity != null) {
      data.remove(entity);
    }
  }
Remove the instance data entity associated with the given key.

@param key the key
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java