[ 
https://issues.apache.org/jira/browse/LUCENE-932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504365
 ] 

Michael McCandless commented on LUCENE-932:
-------------------------------------------

Actually when you open an IndexWriter with "create=true" this is
exactly what's done (just write an empty segments file).

It then uses the deleter to delete all the now un-referenced files,
which will handle retrying if files are open, etc.

The windows issue (can't just rm * from FSDirectory) was part of the
motivation for this (for LUCENE-773).


> delete complete index
> ---------------------
>
>                 Key: LUCENE-932
>                 URL: https://issues.apache.org/jira/browse/LUCENE-932
>             Project: Lucene - Java
>          Issue Type: Wish
>            Reporter: Yonik Seeley
>            Priority: Minor
>
> A way to remove an index (that's more efficient than delete *:*) is needed.
> Removing the index directory isn't portable since you can't delete open files 
> on Windows.
> Creating a new segments file with no segments in it would probably be the way 
> to go.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to