<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=547595214-12032008><FONT face=Arial color=#0000ff
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=547595214-12032008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=547595214-12032008><FONT face=Arial color=#0000ff
size=2>Whenever you delete a basetype for instance, all its deriveds will be
deleted as well (if you use the API. I</FONT></SPAN><SPAN
class=547595214-12032008><FONT face=Arial color=#0000ff size=2>n the GME gui
this is optional only)</FONT></SPAN></DIV>
<DIV><SPAN class=547595214-12032008><FONT face=Arial color=#0000ff size=2>So if
a bulk delete operation is to be performed on both the basetype and the
subtype, that probably won't succeed, unless the subtype is deleted
before the basetype (which means that the subtype's position precedes the
basetype's in the vector, which contains the deletable
elements).</FONT></SPAN></DIV>
<DIV><SPAN class=547595214-12032008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=547595214-12032008><FONT face=Arial color=#0000ff
size=2>Zoli</FONT></SPAN></DIV>
<DIV><SPAN class=547595214-12032008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
gme-users-bounces@list.isis.vanderbilt.edu
[mailto:gme-users-bounces@list.isis.vanderbilt.edu] <B>On Behalf Of </B>Joe
Porter<BR><B>Sent:</B> Tuesday, March 11, 2008 4:05 PM<BR><B>To:</B>
gme-users<BR><B>Subject:</B> [gme-users] Bulk
delete<BR><BR></FONT></DIV>Here's what I'm trying to do (in BON2):<BR><BR>In
the model I have gathered up all objects of a particular kind (using
project->findByKind()), and I want to delete them all from the
model.<BR><BR>Using destroy() on the objects seems to cause numerous
problems. Is there an easy way to do this? What are the
cautions and pitfalls to be observed when using
destroy()?<BR><BR>Thanks,<BR>-Joe<BR><BR><BR></BLOCKQUOTE></BODY></HTML>