title: Removing a Given Key from a Groovy Map
body: <p>I'm sure this is a very simple question, but I'm very new to Groovy and it's something I've been struggling with for awhile now. I have an <code>HttpServletRequest</code> and I need to do something with it's parameters. However, I want to exclude exactly 1 parameter.</p>
  
  <p>Previously, I was using</p>
  
  <pre><code>req.getParameterMap
  </code></pre>
  
  <p>However, to remove the one value, I'm trying something along the lines of </p>
  
  <pre><code>def reqParams = req.getParameterMap?.remove('blah');
  </code></pre>
  
  <p>I know that the above does not quite work, but that's the psuedo-code for what I'm trying to achieve. I really need the new Map and the original <code>req.getParameterMap()</code> Objects to look exactly the same except for the one missing key. What's the best way to achieve this? Thanks!</p>