Teradata Package for LangChain Function Reference - destroy - Teradata® Package for LangChain - Look here for syntax, methods and examples for the functions included in the Teradata langchain-teradata package.

Teradata® Package for LangChain Function Reference

Deployment
VantageCloud
Edition
Enterprise
Product
Teradata® Package for LangChain
Release Number
20.00.00.01
Published
December 2025
ft:locale
en-US
ft:lastEdition
2025-12-19
dita:id
Langchain-Teradata_FxRef_Lake
Product Category
Teradata Vantage
libs.teradata.langchain_teradata.TeradataVectorStore.destroy = destroy(self)
DESCRIPTION:
    Destroys the vector store.
    Notes:
        * Only admin users can use this method.
        * Refer to the 'Admin Flow' section in the
          User guide for details.
 
PARAMETERS:
    None.
 
RETURNS:
    None.
 
RAISES:
    TeradataMlException.
 
EXAMPLES:
    # Load necessary imports.
    >>> from langchain_teradata import TeradataVectorStore
    >>> from teradatagenai import load_data
 
    # Load data into the vector store.
    >>> load_data('byom', 'amazon_reviews_25')
 
    # Example 1: Create a content based vector store for the data
    #            in table 'amazon_reviews_25'.
    #            Use 'amazon.titan-embed-text-v1' embedding model for
    #            creating vector store.
 
    # Note this step is not needed if vector store already exists.
    >>> vs = TeradataVectorStore.from_datasets(name="vs",
                                               data="amazon_reviews_25",
                                               data_columns=['rev_text'],
                                               embedding="amazon.titan-embed-text-v1",
                                               top_k=10,
                                               search_algorithm="HNSW",
                                               vector_column="VectorIndex")
    # Destroy the vector store.
    >>> vs.destroy()