How to easily remove all query params except the one I need?

I have list of query params I need to remove onclick except 1 particular param. Perhaps there’s a way to remove all then set the particular 1 required, but I have no idea how to achieve it, yet.

Thanks in advance for any assistance.

Community Page
Last updated: