19 using Lucene.Net.Index;
22 namespace Lucene.Net.Demo
25 public static class DeleteFiles
30 public static void Main(System.String[] args)
32 var usage = typeof(DeleteFiles) +
" <unique_term>";
35 Console.Error.WriteLine(
"Usage: " + usage);
45 var term =
new Term(
"path", args[0]);
46 var deleted = reader.DeleteDocuments(term);
48 Console.Out.WriteLine(
"deleted " + deleted +
" documents containing " + term);
63 Console.Out.WriteLine(
" caught a " + e.GetType() +
"\n with message: " + e.Message);