@Transactional
  public void removeByMpack(Long mpackId) {
    entityManagerProvider.get().remove(findByMpack(mpackId));
  }
Removes the specified stack based on mpackid.

@param mpackId
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/StackDAO.java