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