After logging in to linux shell execute this command redis-cli KEYS “*$1*” | xargs redis-cli DEL where $1 is the argument/string which you need to find. E.g. redis-cli KEYS “*test*” | xargs redis-cli DEL where test is a string you need to search for.
Sometimes we need to remove specific group of keys which are created earlier or have a specific expiry time remaining. You can simply delete Redis Key-value pairs by checking their expiry time remaining and running this simple script on your console: redis-cli -h <hostname> keys “*” | while read LINE ; do TTL=`redis-cli -h <hostname> ttl […]