remove_tdapi_context | teradataml Azure Extension Library | API Integration - remove_tdapi_context Method - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

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)