Recommending --set-upstream when doing a git push to a feature branch.
[mediagoblin.git] / destroy_environment.py
CommitLineData
1dddd4e9
CAW
1#!./bin/python
2
3import pymongo
4import sys, os
5
6print "*** WARNING! ***"
7print " Running this will destroy your mediagoblin database,"
8print " remove all your media files in user_dev/, etc."
9
10drop_it = raw_input(
11 'Are you SURE you want to destroy your environment? (if so, type "yes")> ')
12
13if not drop_it == 'yes':
14 sys.exit(1)
15
16conn = pymongo.Connection()
17conn.drop_database('mediagoblin')
18
19os.popen('rm -rf user_dev/media')
20os.popen('rm -rf user_dev/beaker')
21
22print "removed all your stuff! okay, now re-run ./bin/buildout"