ElggAnnotation::delete PHP Method

delete() public method

Delete the annotation.
public delete ( ) : boolean
return boolean
    public function delete()
    {
        $result = _elgg_delete_metastring_based_object_by_id($this->id, 'annotation');
        if ($result) {
            _elgg_delete_river(array('annotation_id' => $this->id));
        }
        return $result;
    }