Skip to content

Instantly share code, notes, and snippets.

@1stevengrant
Created June 12, 2012 13:59
Show Gist options
  • Save 1stevengrant/2917700 to your computer and use it in GitHub Desktop.
Save 1stevengrant/2917700 to your computer and use it in GitHub Desktop.
bash file to clean an ExpressionEngine install of unrequired themes etc - courtesy of @monooso
#!/bin/bash
# ------------------------------------------------------------------------------
# Simple script to tidy up a raw EE directory. It contains nothing in the way of
# error checking or the like. Use it at your own risk.
#
# Usage:
# Run the script from the command line, with a single argument: the path to the
# EE directory you'd like to clean. For example:
#
# $> bash ./cleanee.sh /path/to/ExpressionEngine\ 2.5.2/
#
# You _must_ include the trailing slash.
# ------------------------------------------------------------------------------
echo 'Deleting the Agile Records theme...'
rm -r ${1}themes/site_themes/agile_records
rm -r ${1}themes/profile_themes/agile_records
# ...and so forth...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment