#! /bin/bash

set -e

if [ -z "$1" ]; then
	echo "usage: $0 <project>"
	exit 1
fi

ls $1
dropdb $1
rm /usr/local/apache/$1
rm -rf /usr/local/apache/logs/$1
rm /usr/local/apache/conf/$1.conf
rm -rf /data/$1
rm -rf $1
