def do_delete_api(): args = reqparse.RequestParser(). \ add_argument('Table', type=str). \ parse_args() table_name = args['Table'] print("delete table.") status = do_delete(table_name) try: shutil.rmtree(DATA_PATH) except: print("cannot remove", DATA_PATH) return "{}".format(status)
def do_delete_api(): args = reqparse.RequestParser(). \ add_argument('Table', type=str). \ parse_args() table_name = args['Table'] try: os.remove(default_cache_dir + '/cache.db') except: print("cannot remove:", default_cache_dir + '/cache.db') print("delete table.") status = do_delete(table_name) return "{}".format(status)