For those keys that have space: redis-cli --raw keys "$PATTERN" | sed 's/.*/"&"/' | xargs redis-cli del
For those keys that have space:
redis-cli --raw keys "$PATTERN" | sed 's/.*/"&"/' | xargs redis-cli del