Though Redis allows searching entries based on a key pattern (command KEYS ), it doesn't allow bulk deleting entries based on a key pattern, what can be useful in many scenarios, as that in which you need to refresh part of your cache and don't want to entirely drop it. However, we can do it by using the redis-cli pipe mode, that allows redis-cli executing a list of commands received by the standard input. Let's see how to delete a set of entries based on a key pattern: redis-cli --raw KEYS mykeyprefix* | awk '{print "DEL "$0}' | redis-cli --pipe As can be seen, three commands are used: The first command, redis-cli --raw KEYS mykeyprefix* , executes the Redis command KEYS mykeyprefix* for getting all the keys starting by "mykeyprefix", and sends the raw result to the standard output. awk '{print "DEL "$0}' basically transforms the previous command output by prefixing every line with DEL , ...