2 # Delete all the database records for Geni. This tool is used to clean out Geni
3 # records during testing.
5 # Authority info (maintained by the hierarchy module in a subdirectory tree)
6 # is not purged by this tool and may be deleted by a command like 'rm'.
12 from hierarchy import *
14 from genitable import *
17 def process_options():
20 (options, args) = getopt.getopt(sys.argv[1:], '', [])
28 print "purging geni records from database"
29 geni_records_purge(get_default_dbinfo())
31 if __name__ == "__main__":