I tried to find anything here in [documentation](http://knexjs.org/#changelog) with no success.

What I would like to do is to clone my query builder and reset some query parts like order by or group by. How can I do that ?

It looks like there is no many methods available for this query parts

[![enter image description here](https://i.stack.imgur.com/6yusQ.png)](https://i.stack.imgur.com/6yusQ.png)

And there are clear methods only for selects and where conditions.
How do you do it ?

Example:

```
const qb = knex
  .select('id')
  .from('table')
  .where({ visibility: 'public' })
  // some left joins here
  .groupBy('id')

```

How can I do then something like

```
const new_qb = qb
  .clone()
  // remove group by here
  .clearSelect()
  .count()

```