public function delete($table, $where = null)
    {
        $delete = $this->build()->delete($table);
        if ($where) {
            return $delete->where($where)->execute();
        }

        return $delete;
    }
public function delete($table, $where = null)
    {
        $delete = $this->build()->delete($table);
        if ($where) {
            return $delete->where($where)->execute();
        }

        return $delete;
    }
public function delete ( $ table , $ where = null ) { $ delete = $ this -> build ( ) -> delete ( $ table ) ; if ( $ where ) { return $ delete -> where ( $ where ) -> execute ( ) ; } return $ delete ; }
Delete from a table

When all parameters are specified, the delete query is immediately
executed and the number of rows affected will be returned. Otherwise
the query builder is returned so you can extend the query further.

@param string       $table
@param array|string $where (optional)
@return Query|int
@throws QueryException
Delete from a table