DodDocumentService implements IDodDocumentService { @Override public Boolean deleteDodDocuments(String pid) { logger.debug("deleteAllDodDocumentsForPatient begin"); if (StringUtils.isBlank(pid)) { logger.debug("Patient pid is blank"); return false; } File patientDocDir = new File(String.format("%s/%s", dodDocumentConfiguration.getDocumentStorageFilePath(), pid2HexString(pid))); Boolean isDelete = false; try { isDelete = deleteDirectory(patientDocDir); } catch (IOException e) { logger.error("Failed to delete patient DoD documents.", e); } logger.debug("deleteAllDodDocumentsForPatient result: {}", isDelete); return isDelete; }  @Autowired void setDodDocumentConfiguration(DodDocumentConfiguration dodDocumentConfiguration); @Override Future<Document> convertAndStoreCDADocument(String cdaNote, PatientIds patientIds, String eventId, Document vprDocument); @Override Future<Document> retrieveConvertAndStoreRTFDocument(String complexNoteUrl, PatientIds patientIds,
                                                               String eventId, Document vprDocument); @Override Boolean deleteDodDocuments(String pid);  }
@Test public void testDeleteDodDocuments() { assertTrue(testDodDocumentService.deleteDodDocuments("10108")); }