public void deleteMigrationWorkItems(final long hostId, final WorkType type, final long serverId) {
final SearchCriteria<HaWorkVO> sc = UntakenMigrationSearch.create();
sc.setParameters("host", hostId);
sc.setParameters("type", type.toString());
HaWorkVO work = createForUpdate();
Date date = new Date();
work.setDateTaken(date);
work.setServerId(serverId);
work.setStep(HighAvailabilityManager.Step.Cancelled);
update(work, sc);
}