1 follower Follow

Batch removal of AnnotatedPluginDocuments via Java API

Dear support,

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.

1 comment