code: public void closeAndDelete() throws JournalException
      {
      	close();
      	if (!file.delete())
      	    if (file.exists())
      	        throw new JournalException("Cannot delete journal file : "+file.getAbsolutePath());
      }
docs: Close and delete the journal file