One liner for deleting based on a pattern in redis. KEYS supports wildcards, delete doesn't. No worries xargs to the rescue. You might not need HOST, or PORT depending on your setup. You might need to sudo BOTH commands depending on your setup.
Using keys is dangerous in a production environment. Therefore in development, you should get out of the habit of using it. This works better (and can be varied):