[gme-users] Bulk delete

Zoltan Molnar zolmol at isis.vanderbilt.edu
Wed Mar 12 11:00:45 CDT 2008

Whenever you delete a basetype for instance, all its deriveds will be
deleted as well (if you use the API. In the GME gui this is optional
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

-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu
[mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Joe
Sent: Tuesday, March 11, 2008 4:05 PM
To: gme-users
Subject: [gme-users] Bulk delete

Here's what I'm trying to do (in BON2):

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.

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()?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20080312/a6c8998f/attachment.html 

More information about the gme-users mailing list