bigframes.pandas.clean_up_by_session_id#
- bigframes.pandas.clean_up_by_session_id(session_id: str, location: str | None = None, project: str | None = None) None[source]#
Searches through BigQuery tables and routines and deletes the ones created during the session with the given session id. The match is determined by having the session id present in the resource name or metadata. The cloud functions serving the cleaned up routines are also cleaned up.
This could be useful if the session object has been lost. Calling session.close() or bigframes.pandas.close_session() is preferred in most cases.
- Parameters:
session_id (str) – The session id to clean up. Can be found using session.session_id or get_default_session_id().
location (str, default None) – The location of the session to clean up. If given, used together with project kwarg to determine the dataset to search through for tables to clean up.
project (str, default None) – The project id associated with the session to clean up. If given, used together with location kwarg to determine the dataset to search through for tables to clean up.
- Returns:
None