Sometimes you might want to purge a set of similar Redis keys in one shot. So far, standard Redis "DEL" command does not allow to remove keys using patterns. However, there is a trick to do this action. Execute the following command in bash:
redis-cli -h [host] -p [port] KEYS "prefix:*" | xargs redis-cli DEL
Seems clear? Wait a minute! What if you use multiple databases (keyspaces) and need to remove keys from a database different from default (0) one? No problem there! Here is the solution:
redis-cli -h [host] -p [port] -n [db] KEYS "prefix:*" | xargs redis-cli -n [db] DEL
Also, for those who's looking for a tool to manage data in Redis there is Redis Desktop Manager. It's still limited in functionality but hopefully will become a very handy tool pretty soon.
There is a little bit more complex but more safe solution (according to Itamar) based on Bash scripting and using redis SCAN: https://gist.github.com/itamarhaber/11126830
If you have questions, don't hesitate to leave them in comments.