WordPress\ORM\BaseModel::delete PHP Method

delete() public method

Delete the model from the database. Returns true if it was successful or false if it was not.
public delete ( ) : boolean
return boolean
    public function delete()
    {
        global $wpdb;
        return $wpdb->delete(static::get_table(), array(static::get_primary_key() => $this->{static::get_primary_key()}));
    }