How do I remove keys? January 7, 2023 by Tarik Another compact one-liner I use to do what you want is: redis-cli KEYS "user*" | xargs redis-cli DEL