code: static boolean deleteFile(final File fileToDelete)
  	  {
  	    try {
  	      Boolean deleted = getInstance().doPrivileged(
  	        new PrivilegedAction<Boolean>() {
  	          public Boolean run() {
  	            return Boolean.valueOf(fileToDelete.delete());
  	          }
  	        }
  	      );
  	      return deleted.booleanValue();
  	    }
  	    catch (SecurityException se) {
  			// TODO: Add logging here but be careful since this code is used in logging logic itself
  			//       and may result in an indefinite loop.
  	      return false;
  	    }
  	  }
docs: Using privileged java security, delete the file corresponding to the specified
  <code>File</code> object.
  <p>
  @param fileToDelete a non-null <code>File</code> object whose abstract pathname
  corresponds to the physical file to delete. The caller must guarantee that passed
  object is non null and that the physical file exists.
  @return true if and only if the file was successfully deleted. Otherwise false. If
  we do not have permission to delete this file the corresponding SecurityException is
  logged and absorbed and false is returned.