diff --git a/scripts/remove b/scripts/remove index 2d3d8a3..e97aaaf 100644 --- a/scripts/remove +++ b/scripts/remove @@ -2,5 +2,9 @@ final_path=/var/www/noalyss sudo rm -rf $final_path -su postgres -c "dropdb account_repository" +for i in $(psql -l | grep "\" | awk '{print $1}') +do + su postgres -c "dropdb $i" +done + su postgres -c "dropuser noalyss"