Elgg\Database\Annotations::delete PHP Method

delete() public method

Deletes an annotation using its ID.
public delete ( integer $id ) : boolean
$id integer The annotation ID to delete.
return boolean
    function delete($id)
    {
        $annotation = $this->get($id);
        if (!$annotation) {
            return false;
        }
        return $annotation->delete();
    }