Helma logo
helma.org » Home > Stories > HopObject.remove()

HopObject.remove()

Deletes a HopObject from the database.

Syntax
HopObject.remove()

The remove() function deletes a persistent HopObject from the database.

Note that additionally you may want to call the removeChild() function on any object holding the deleted object in its child collection in order to notify it that the child object has been removed.

Example
res.write(parent.size());
24
var child = parent.get(5);
child.remove();
parent.removeChild(child);
res.write(parent.size());
23


... comment


Page last modified on 2004-02-20 19:54 by hns