public static void removeLunDisk(LunDisk lunDisk) {
    DbFacade.getInstance().getVmDeviceDao().remove(new VmDeviceId(lunDisk.getId(), null));
    LUNs lun = lunDisk.getLun();
    DbFacade.getInstance()
        .getDiskLunMapDao()
        .remove(new DiskLunMapId(lunDisk.getId(), lun.getLUNId()));
    DbFacade.getInstance().getBaseDiskDao().remove(lunDisk.getId());

    lun.setLunConnections(
        new ArrayList<>(
            DbFacade.getInstance().getStorageServerConnectionDao().getAllForLun(lun.getLUNId())));

    if (!lun.getLunConnections().isEmpty()) {
      StorageHelperDirector.getInstance()
          .getItem(lun.getLunConnections().get(0).getStorageType())
          .removeLun(lun);
    } else {
      // if there are no connections then the lun is fcp.
      StorageHelperDirector.getInstance().getItem(StorageType.FCP).removeLun(lun);
    }
  }