3 # Delete all the database records for SFA. This tool is used to clean out SFA
4 # records during testing.
6 # Authority info (maintained by the hierarchy module in a subdirectory tree)
7 # is not purged by this tool and may be deleted by a command like 'rm'.
13 from sfa.trust.hierarchy import *
14 from sfa.util.record import *
15 from sfa.util.table import SfaTable
16 from sfa.util.sfalogging import sfa_logger_goes_to_import,sfa_logger
18 def process_options():
20 (options, args) = getopt.getopt(sys.argv[1:], '', [])
27 sfa_logger_goes_to_import()
28 sfa_logger().info("Purging SFA records from database")
30 table.sfa_records_purge()
32 if __name__ == "__main__":