public void removeWorkspaceIndex ( WorkspaceEntry wsConfig , boolean isSystem ) throws RepositoryConfigurationException , IOException { String indexDirName = wsConfig . getQueryHandler ( ) . getParameterValue ( QueryHandlerParams . PARAM_INDEX_DIR ) ; File indexDir = new File ( indexDirName ) ; if ( PrivilegedFileHelper . exists ( indexDir ) ) { removeFolder ( indexDir ) ; } if ( isSystem ) { File systemIndexDir = new File ( indexDirName + "_" + SystemSearchManager . INDEX_DIR_SUFFIX ) ; if ( PrivilegedFileHelper . exists ( systemIndexDir ) ) { removeFolder ( systemIndexDir ) ; } } }
Remove all file of workspace index .