Use the remove_tdapi_contex method to remove a specific TDAPI context.
For Google Cloud, this method also removes all Blobs created during the operations of tdapiclient. Optionally, it deletes the database table containing BYOM models..
Required Argument:
- tdapi_context: Specifies the TDAPI context to be removed.
Optional Arguments:
- delete_byom_models: Specifies whether the table containing BYOM models should be deleted.
The default value is 'False'.
- table_name: Specifies the name of the table containing BYOM models to be deleted.
The default value is an empty string (""). This option is needed when delete_byom_models is set to 'True.'
- schema_name: Specifies the schema of the table to be dropped.
If a schema is not specified, the function drops table from the current database.
Example
This example creates Google Cloud context using "test-path" as parent folder in bucket "model_data". And then remove it.
from tdapiclient import create_tdapi_context, remove_tdapi_context
context = create_tdapi_context("gcp", gcp_bucket_name="model_data", gcp_bucket_path="test-path")
remove_tdapi_context(context)