def remove_all_trips_fully_outside_buffer(db_conn, center_lat, center_lon, buffer_km, update_secondary_data=True):
distance_function_str = add_wgs84_distance_function_to_db(db_conn)<EOL>stops_within_buffer_query_sql = "<STR_LIT>" + distance_function_str +"<STR_LIT>".format(lat=float(center_lat), lon=float(center_lon), d_m=int(<NUM_LIT:1000>*buffer_km))<EOL>select_all_trip_Is_where_stop_I_is_within_buffer_sql = "<STR_LIT>" + stops_within_buffer_query_sql + "<STR_LIT:)>"<EOL>trip_Is_to_remove_sql = "<STR_LIT>" + select_all_trip_Is_where_stop_I_is_within_buffer_sql + "<STR_LIT:)>"<EOL>trip_Is_to_remove = pandas.read_sql(trip_Is_to_remove_sql, db_conn)["<STR_LIT>"].values<EOL>trip_Is_to_remove_string = "<STR_LIT:U+002C>".join([str(trip_I) for trip_I in trip_Is_to_remove])<EOL>remove_all_trips_fully_outside_buffer_sql = "<STR_LIT>" + trip_Is_to_remove_string + "<STR_LIT:)>"<EOL>remove_all_stop_times_where_trip_I_fully_outside_buffer_sql = "<STR_LIT>" + trip_Is_to_remove_string  + "<STR_LIT:)>"<EOL>db_conn.execute(remove_all_trips_fully_outside_buffer_sql)<EOL>db_conn.execute(remove_all_stop_times_where_trip_I_fully_outside_buffer_sql)<EOL>delete_stops_not_in_stop_times_and_not_as_parent_stop(db_conn)<EOL>db_conn.execute(DELETE_ROUTES_NOT_PRESENT_IN_TRIPS_SQL)<EOL>db_conn.execute(DELETE_SHAPES_NOT_REFERENCED_IN_TRIPS_SQL)<EOL>db_conn.execute(DELETE_DAYS_ENTRIES_NOT_PRESENT_IN_TRIPS_SQL)<EOL>db_conn.execute(DELETE_DAY_TRIPS2_ENTRIES_NOT_PRESENT_IN_TRIPS_SQL)<EOL>db_conn.execute(DELETE_CALENDAR_ENTRIES_FOR_NON_REFERENCE_SERVICE_IS_SQL)<EOL>db_conn.execute(DELETE_CALENDAR_DATES_ENTRIES_FOR_NON_REFERENCE_SERVICE_IS_SQL)<EOL>db_conn.execute(DELETE_FREQUENCIES_ENTRIES_NOT_PRESENT_IN_TRIPS)<EOL>db_conn.execute(DELETE_AGENCIES_NOT_REFERENCED_IN_ROUTES_SQL)<EOL>if update_secondary_data:<EOL><INDENT>update_secondary_data_copies(db_conn)<EOL><DEDENT>
Not used in the regular filter process for the time being.

Parameters
----------
db_conn: sqlite3.Connection
    connection to the GTFS object
center_lat: float
center_lon: float
buffer_km: float