title: How to delete Redis keys with special characters?
body: <p>I cannot delete a key of the format <code>ENV:NAMESPACE:?''?""-last</code> from our Redis instance. It appears to have been added maliciously.</p>
  
  <p>Despite it being returned by <code>redis-cli --scan</code>, I cannot find any way to delete it using <code>redis-cli</code>. Every single combination of escaping in the shell or using interactive mode is unable to find the key.</p>
  
  <p>Just a few attempts include:</p>
  
  <pre><code>$ redis-cli --scan --pattern 'ENV:NAMESPACE:*-last' | xargs redis-cli del
  xargs: unterminated quote
  $ redis-cli del ENV:NAMESPACE:?''?""-last
  (integer) 0
  $ redis-cli del "ENV:NAMESPACE:?''?\"\"-last"
  (integer) 0
  $ redis-cli del 'ENV:NAMESPACE:?'"'"''"'"'?""-last'
  $redis-cli
  &gt; del ENV:NAMESPACE:?''?""-last
  Invalid argument(s)
  &gt; del "ENV:NAMESPACE:?''?\"\"-last"
  (integer) 0
  &gt; del 'ENV:NAMESPACE:?\'\'?""-last'
  (integer) 0
  </code></pre>
  
  <p>Anyone know a way to make this work or a reasonable alternative to delete the key?</p>