code: private void deleteGroup(List<Segment> group) {
      // Delete the old segments.
      for (Segment oldSegment : group) {
        oldSegment.close();
        oldSegment.delete();
      }
    }
docs: Completes compaction by deleting old segments.