How to unload state management or to remove page query

Figuring out the action to remove page query or to unload state management without page refresh. Note that this is not related to routing, only state management.

i.e from page/?module=1 to page/ and not page/?

Every state manager has set and remove actions that you can invoke as dynamic events like on click or so:

image

I have no issue with removing the parameter. I want to remove the query at all.

Remove state will result in URL page/?
I want to remove the query entirely so expected URL will be page/ and not page/?