The following sample deletes a history record. You must get the unique key value for record to delete.
//for this sample it is assumed that a history record exists with the unique key equal to a String, uniqueKey
protected HistoryRepository historyRepository;
historyRepository.deleteHistory(uniqueKey);