We're Hiring!

Delete disk files in /OMERO

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Delete disk files in /OMERO

Postby bernhard » Thu Jul 29, 2010 3:17 pm

Hi all!

Is there an API call to delete files created wit the RawFileStore in Omero4.1. I've seen the truncate method in Omero4.2 which comes close to delete I guess. Is there a way to patch Omero4.1 to back-port that functionality? What about a real delete which removes the file?

What happens to Pixel files and original image files after an IDelete:deleteImage? I guess it doesn't delete the files from the /OMERO repository in Omero4.1, is that correct? Does it do so in Omero4.2? Again, any possibility to back-port that in case it does?

I'd reckon it boils down to a bin/omero cleanse to get rid of files after references are deleted from the database. Is this the only option I have?

Thanks for your help! Bernhard
bernhard
 
Posts: 37
Joined: Mon Jun 22, 2009 7:18 am

Re: Delete disk files in /OMERO

Postby cxallan » Fri Aug 06, 2010 9:17 am

There's no API method to delete files on disk. In 4.1.x and 4.2.x the server performs no deletions in the binary repository. This cleanup is designed to be done by the reconciliation cleanse script. The design goal with this, given that there are many potential strategies for binary repository storage and in fact with 4.2.x many possible types of binary repositories is to not perform these operations with the API.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am


Return to Developer Discussion

Who is online

Users browsing this forum: No registered users and 1 guest