class BackupService {

    public void deleteBackup(String filename) throws BackupFileNotFoundException {
        auditDataHelper.putBackupFilename(backupRepository.getFilePath(filename));
        if (!getBackup(filename).isPresent()) {
            throw new BackupFileNotFoundException(getFileNotFoundExceptionMessage(filename));
        }
        backupRepository.deleteBackupFile(filename);
    }

    @Autowired public  BackupService(BackupRepository backupRepository, ServerConfService serverConfService,
            ExternalProcessRunner externalProcessRunner,
            @Value("${script.generate-backup.path}") String generateBackupScriptPath,
            AuditDataHelper auditDataHelper);

}