Remove querystring completely before hitting upstream

(Kong Version 1.3)

Hi all,

is there any option to remove the querystring completely for a service or route?

Example: I have a route

/api/foo/

Now someone accesses it by /api/foo/1/2?foo=bar&this=whatever

I only want the /api/foo/1/2 to hit upstream and remove the whole querystring (and the question mark as well). How do I do that?

I do know about the request transformer plugin, but that one allows only to specify query params to be removed, not a “applies for all” rule regarding query params.

I would also be interested in knowing how to do this?