Page 1 of 1

Delete disk files in /OMERO

PostPosted: Thu Jul 29, 2010 3:17 pm
by bernhard
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

Re: Delete disk files in /OMERO

PostPosted: Fri Aug 06, 2010 9:17 am
by cxallan
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.