void destroyAllOplogs() {
    // get a snapshot to prevent ConcurrentModificationException
    for (Oplog oplog : getAllOplogs()) {
      if (oplog != null) {
        oplog.destroy();
        removeOplog(oplog.getOplogId());
      }
    }
  }
Removes the oplog from the map given the oplogId

@param id id of the oplog to be removed from the list
@return oplog Oplog which has been removed
geode-core/src/main/java/org/apache/geode/internal/cache/PersistentOplogSet.java