#!/bin/bash # Move working directory to path of this bash script cd $(dirname "$0") echo "Press 1 to delete this entire WP install:" read input if [ "$input" = "1" ]; then find ./ -type f -not -name ".git" -not -name 'install.sh' -not -name 'cleanup.sh' -not -name '.' -not -name 'acf.zip' -not -name 'README.md' ! -path '*/.git/*' -delete rm -rf wp-content/ rm -rf wp-includes/ rm -rf wp-admin/ else echo "Stopped" fi