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

Teradata Vantageā„¢ - API Integration Guide for Cloud Machine Learning

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Vantage
Release Number
1.4
Published
September 2023
Language
English (United States)
Last Update
2023-09-28
dita:mapPath
mgu1643999543506.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
mgu1643999543506

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)