code: public void remove() throws IOException
     {
        if ((fileBuffer != null) && PrivilegedFileHelper.exists(fileBuffer))
        {
           if (!PrivilegedFileHelper.delete(fileBuffer))
           {
              throw new IOException("Cannot remove file " + PrivilegedFileHelper.getAbsolutePath(fileBuffer)
                 + " Close all streams.");
           }
        }
     }
docs: Remove buffer.
  
  @throws IOException
  if file cannot be removed.