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.

Hello,
There is no a dynamic event which removes all query params except one. Just add as many remove query parameter actions as you need.