Skip to content

Instantly share code, notes, and snippets.

@terrancesnyder
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrancesnyder/b4ef1acd7494b1b9aa78 to your computer and use it in GitHub Desktop.
Save terrancesnyder/b4ef1acd7494b1b9aa78 to your computer and use it in GitHub Desktop.
Useful bash for clearing solr index data
shopt -s globstar
find ./consumers_s*/**/data/* -type f -exec rm -rf {} \;
find ./consumers_s*/**/tlog/* -type f -exec rm -rf {} \;
find ./orders_s*/**/data/* -type f -exec rm -rf {} \;
find ./orders_s*/**/tlog/* -type f -exec rm -rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment