<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Excellent! That's definitely better than waiting.<br>
    <br>
    Thank you very much.<br>
    <br>
    Paul<br>
    <br>
    <div class="moz-cite-prefix">On 25/01/2016 21:30, William Moore
      wrote:<br>
    </div>
    <blockquote
      cite="mid:E5FF4B3C-8FFC-4A78-B646-D1534DED39B0@lifesci.dundee.ac.uk"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      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 moz-do-not-send="true"
          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 moz-do-not-send="true"
                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 moz-do-not-send="true"
                    class="moz-txt-link-abbreviated"
                    href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a>
                  <br class="">
                  <a moz-do-not-send="true"
                    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 moz-do-not-send="true"
                href="mailto:ome-users@lists.openmicroscopy.org.uk"
                class="">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="">
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ome-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a>
<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>
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      With kind regards,<br>
      <br>
      <strong>Paul K Korir, PhD</strong><br>
      <i>Scientific Programmer</i><br>
      EMBL-EBI<br>
      Main Building, A2-35,<br>
      WTGC, Hinxton, Cambridge CB10 1SD<br>
      P: +44 1223 49 44 22<br>
      F: +44 1223 49 44 68</div>
  </body>
</html>