<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Paul,<div class=""><br class=""></div><div class=""> In fact, the Blitz Gateway gives you a short cut if you don’t actually need to handle the </div><div class="">delete response yourself.</div><div class="">You can simply use wait=True, and the delete will be done before this returns.</div><div class=""><br class=""></div><div class="">conn.deleteObjects("Roi", [roiId], wait=True)</div><div class=""><br class=""></div><div class="">I’ve added an example of this, and updated the docs as you suggested in </div><div class=""><a href="https://github.com/openmicroscopy/openmicroscopy/pull/4442" class="">https://github.com/openmicroscopy/openmicroscopy/pull/4442</a></div><div class=""><br class=""></div><div class=""> Cheers,</div><div class=""><br class=""></div><div class="">   Will.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 21 Jan 2016, at 13:10, Paul Kibet Korir <<a href="mailto:pkorir@ebi.ac.uk" class="">pkorir@ebi.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    Thanks. Including the callback worked.<br class="">
    <br class="">
    P<br class="">
    <br class="">
    <div class="moz-cite-prefix">On 21/01/2016 11:56, Mark Carroll
      wrote:<br class="">
    </div>
    <blockquote cite="mid:56A0C76E.3010802@dundee.ac.uk" type="cite" class="">On
      01/21/2016 11:47 AM, Paul Kibet Korir wrote:
      <br class="">
      (snip)
      <br class="">
      <blockquote type="cite" class="">     handle = conn.deleteObjects(
        <br class="">
                 "Roi",
        <br class="">
                 obj_ids,
        <br class="">
                 deleteAnns=True,
        <br class="">
                 deleteChildren=True
        <br class="">
                 )
        <br class="">
        <br class="">
        <br class="">
             conn._closeSession()
        <br class="">
        <br class="">
        What could I be doing wrong?
        <br class="">
      </blockquote>
      <br class="">
      Thank you for sharing your test code. Try the next bit of code
      from the
      <br class="">
      same page, "Retrieve callback and wait until delete completes".
      (-: You
      <br class="">
      can probably just paste it in verbatim.
      <br class="">
      <br class="">
      -- Mark
      <br class="">
      <br class="">
      The University of Dundee is a registered Scottish Charity, No:
      SC015096
      <br class="">
      _______________________________________________
      <br class="">
      ome-users mailing list
      <br class="">
      <a class="moz-txt-link-abbreviated" href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a>
      <br class="">
      <a class="moz-txt-link-freetext" href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a>
      <br class="">
    </blockquote>
    <br class="">
    <div class="moz-signature">-- <br class="">
      With kind regards,<br class="">
      <br class="">
      <strong class="">Paul K Korir, PhD</strong><br class="">
      <i class="">Scientific Programmer</i><br class="">
      EMBL-EBI<br class="">
      Main Building, A2-35,<br class="">
      WTGC, Hinxton, Cambridge CB10 1SD<br class="">
      P: +44 1223 49 44 22<br class="">
      F: +44 1223 49 44 68</div>
  </div>

_______________________________________________<br class="">ome-users mailing list<br class=""><a href="mailto:ome-users@lists.openmicroscopy.org.uk" class="">ome-users@lists.openmicroscopy.org.uk</a><br class="">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users<br class=""></div></blockquote></div><br class=""></div></body></html>