Use the remove_tdapi_contex method to remove a specific TDAPI context.
For Azure, 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 Azure context using "model_data" as parent folder in default datastore. And then remove it.
from tdapiclient import create_tdapi_context, remove_tdapi_context
context = create_tdapi_context("azure", datastore_path="model_data")
remove_tdapi_context(context)