code: public void deleteFile(String name) throws IOException {
      if (!fs.delete(new Path(directory, name))) {
        throw new IOException("Cannot delete index file " + name);
      }
    }
docs: /* (non-Javadoc)
  @see org.apache.lucene.store.Directory#deleteFile(java.lang.String)