[ome-users] Deleting orphaned datasets
Chris Allan
callan at blackcat.ca
Wed Mar 19 09:43:14 GMT 2008
On 17 Mar 2008, at 10:08, Matthias Dunda wrote:
> Hi,
Hi Matthias.
>
> is there a way to ultimately delete orphaned datasets including all
> unnessessary binary data?
Fundamentally, yes
You unlink things using IUpdate.deleteObject(). In Beta-2.3 this is
pseudo-manual process (ie. you must know what you want to delete and
the order in which to delete it), leading up to Beta-3.0, and will be
complete for Beta-3.0, is work on a delete service which will hide
the majority of this from the programmer. You can look at the initial
implementation here:
http://trac.openmicroscopy.org.uk/omero/browser/trunk/components/
server/src/ome/services/delete/DeleteBean.java
this should give you a good idea about how to do this from your own
software.
Deleting "orphaned" binary data is done through the IRepositoryInfo
service's "removeUnusedFiles()" method.
>
> Cheers
> Matthias
Ciao.
-Chris
More information about the ome-users
mailing list