I want to delete 137K keys by pattern match from Azure Cache for Redis.
I am using Ubuntu bash for Windows.
Commands I tried:
redis-cli -h HOST -p PORT -a PASSWORD keys 'customer*' | xargs redis-cli DEL
redis-cli -h HOST -p PORT -a PASSWORD --scan --pattern 'customer*' | xargs redis-cli DEL
Both does not delete any keys and only gives output:
(integer) 0
Screenshot of the output:
what am I missing here?