code: private void removeFile(int index) {
          String file = files.remove(index);
          FileLogUtils.deleteFile(directory, file);
      }
docs: Remove and delete a file from the file list.
  
  @param index the file index