See my answer on https://support.geneious.com/hc/en-us/community/posts/360042659011-Delayed-document-indexing-makes-plugin-behaviour-unpredictable - hopefully you can avoid using placeholder documents
Batch removal of AnnotatedPluginDocuments via Java API
I'm writing a Geneious plugin. The plugin creates placeholder documents containing annotations for yet-to-be imported fasta/ab1 files. These placeholder documents become obsolete the moment we receive the real sequences.
I'm looking for a way to batch-delete those dummy placeholder as it is probably more efficient than deleting them one by one.
But you don't have the DELETE equivalnt of retrieve(URN urnsToRetrieve, RetrieveCallback callback).
You do have a PartiallyWritableDatabaseService that provides a deleteDocuments method. But that's an abstract class and I didn't see how I could get hold of an instance of it.
Could you tell me if it is possible to programmatically batch-delete documents?
Please sign in to leave a comment.