Skip to content

Instantly share code, notes, and snippets.

@escowles
Last active October 24, 2018 12:34
Show Gist options
  • Save escowles/2dbad4ef0e0eb82731b6b6d50068d7eb to your computer and use it in GitHub Desktop.
Save escowles/2dbad4ef0e0eb82731b6b6d50068d7eb to your computer and use it in GitHub Desktop.
fedora-wiper
#!/bin/sh
for i in /var/lib/tomcat7/fcrepo4-data/fedora.binary.directory/*; do
echo $i
rm -rf $i
done
rm -rf /var/lib/tomcat7/fcrepo4-data/[cf]*
#!/bin/sh
psql -p 5433 -c 'drop table modeshape_repository' fcrepo
#!/bin/sh
HOST="localhost:8983"
XML="<delete><query>*:*</query></delete>"
CORE="blacklight"
curl http://$HOST/solr/$CORE/update?commit=true -H "Content-Type: text/xml" --data-binary "$XML"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment