Not a developer? Go to MovableType.com

Documentation

Removing an object

$foo->remove()

To remove an object from the datastore, call the remove method on an object that you have already loaded using load:

$foo->remove();

On success, remove will return some true value; on failure, it will return undef, and you can retrieve the error message by calling the errstr method on the object:

$foo->remove
    or die "Removing foo failed: ", $foo->errstr;

If you are removing objects in a loop, take a look at the “Note on object locking”.

Back

Leave a Comment