Skip to content

Instantly share code, notes, and snippets.

@aamsur-mkt
Last active September 23, 2019 09:17
Show Gist options
  • Save aamsur-mkt/507b222c12f1244151dea715bcdb2ec3 to your computer and use it in GitHub Desktop.
Save aamsur-mkt/507b222c12f1244151dea715bcdb2ec3 to your computer and use it in GitHub Desktop.
One liner Del Redis By Key
redis-cli -h 9.9.9.9 -p 6379 -a authkey -n indexdb --scan --pattern *yourfpattern* | xargs redis-cli -h 9.9.9.9 -p 6379 -a authkey -n indexdb del
# first syntax will show list of keys
redis-cli -h 9.9.9.9 -p 6379 -a authkey -n indexdb --scan --pattern *yourfpattern*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment