Skip to content

Instantly share code, notes, and snippets.

@hendawy
Created November 7, 2016 11:30
Show Gist options
  • Save hendawy/599d8075943d897c356c7a56520c6b15 to your computer and use it in GitHub Desktop.
Save hendawy/599d8075943d897c356c7a56520c6b15 to your computer and use it in GitHub Desktop.
redis-cli -h <host> -p <port> -n <db> KEYS "*pattern*" | xargs -L1 -I '$' echo '"$"'| xargs redis-cli -h <host> -p <port> -n <db> DEL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment