code: public void clear() throws IOException
     {
        if (out != null)
        {
           out.truncate(0);
           out.close();
           out = PrivilegedFileHelper.fileOutputStream(logFile).getChannel();
           out.position(1024 * fileSize - 1);
           out.write(ByteBuffer.wrap(new byte[]{0}));
           out.position(0);
           out.force(false);
        }
     }
docs: Clears the redo log.
  
  @throws IOException
  if the redo log cannot be cleared.