remove_tdapi_context | Google Vertex AI teradataml Extension Library - 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
ft:locale
en-US
ft:lastEdition
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 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)