diff --git a/zulia-server/src/main/java/io/zulia/server/filestorage/FileDocumentStorage.java b/zulia-server/src/main/java/io/zulia/server/filestorage/FileDocumentStorage.java index 50441716..275f1bc0 100644 --- a/zulia-server/src/main/java/io/zulia/server/filestorage/FileDocumentStorage.java +++ b/zulia-server/src/main/java/io/zulia/server/filestorage/FileDocumentStorage.java @@ -145,7 +145,10 @@ public void deleteAssociatedDocuments(String uniqueId) throws IOException { @Override public void drop() throws Exception { - deletePath(Path.of(filesPath, indexName)); + Path p = Path.of(filesPath, indexName); + if (Files.exists(p)) { + deletePath(p); + } } @Override