Page 1 of 1

delete key-value annotations loaded using metadata populate

PostPosted: Mon Mar 25, 2019 6:45 pm
by johnm
Hi,

I used the CLI and "/bin/omero metadata populate" to load a csv of annotations and then I converted that into key-values using "/bin/omero metadata populate --context bulkmap --cfg xxxx.yml". That all worked great after cleaning my files appropriately and now the Parade tool works to search by key-values. Very excited about this. Unfortunately I am not able to delete key-values if I want to make a change. Is this possible?

I've tried this: /bin/omero delete Dataset:168 --exclude Image --include Annotation
and this: /bin/omero delete Dataset:168 --exclude Image --include MapAnnotation

and tables disappear, but key-values are still associated with images.

I can supply examples if necessary. I am using the most recent versions of omero and the metadata module.

Thanks in advance! -John

Re: delete key-value annotations loaded using metadata popul

PostPosted: Mon Mar 25, 2019 7:05 pm
by mtbc
Dear John,

Code: Select all
/bin/omero delete Dataset/MapAnnotation:168

deletes all the key-values on the dataset and on anything within it. Does this achieve your goal? Remember you can use the --dry-run and --report options to be sure.

It's great that you're making good use of the metadata features.

Cheers,
Mark

Re: delete key-value annotations loaded using metadata popul

PostPosted: Mon Mar 25, 2019 7:21 pm
by johnm
That worked! The images are still there in their dataset folder and key-values are gone. Thanks!