Skip to content

Instantly share code, notes, and snippets.

@debnath
Created December 4, 2017 03:20
Show Gist options
  • Save debnath/a9879ffd5492113e7db2a33f016ced8c to your computer and use it in GitHub Desktop.
Save debnath/a9879ffd5492113e7db2a33f016ced8c to your computer and use it in GitHub Desktop.
Redis script to delete all keys starting with a prefix
redis-cli KEYS "PREFIX*" | xargs -L 100 redis-cli DEL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment