Delete, logical flow

public method: delete()

As of v3.0, as long as you’ve followed our conventions in your module configuration, you probably don’t need to write your own delete() method. Calling delete() on any object that extends w2p_Core_BaseObject will automatically trigger this flow;

If there are any errors anywhere in this process, delete() returns a boolean FALSE and you can inspect the errors by calling getError() on the object.

While this seems incredibly complicated, it is all handled behind the scenes for you automagically by simply calling delete() on your object.