@Override
  public synchronized void deleted() {
    if (links() == 0) {
      deleted = true;
      if (openCount == 0) {
        deleteContents();
      }
    }
  }
Marks this file as deleted. If there are no streams or channels open to the file, its contents
are deleted if necessary.
jimfs/src/main/java/com/google/common/jimfs/RegularFile.java