Teradata Package for Python Function Reference on VantageCloud Lake - delete_entity - Teradata Package for Python - Look here for syntax, methods and examples for the functions included in the Teradata Package for Python.
Teradata® Package for Python Function Reference on VantageCloud Lake
- Deployment
- VantageCloud
- Edition
- Lake
- Product
- Teradata Package for Python
- Release Number
- 20.00.00.08
- Published
- November 2025
- ft:locale
- en-US
- ft:lastEdition
- 2025-12-05
- dita:id
- TeradataPython_FxRef_Lake_2000
- Product Category
- Teradata Vantage
- teradataml.store.feature_store.feature_store.FeatureStore.delete_entity = delete_entity(self, entity)
- DESCRIPTION:
Removes archived Entity from repository.
PARAMETERS:
entity:
Required Argument.
Specifies either the name of Entity or Object of Entity
to delete from repository.
Types: str OR Entity
RETURNS:
bool.
RAISES:
TeradataMLException, TypeError, ValueError
EXAMPLES:
>>> from teradataml import DataFrame, Entity, FeatureStore
# Create teradataml DataFrame.
>>> load_example_data('dataframe', ['sales'])
>>> df = DataFrame("sales")
# Create FeatureStore for repo 'vfs_v1'.
>>> fs = FeatureStore("vfs_v1")
Repo vfs_v1 does not exist. Run FeatureStore.setup() to create the repo and setup FeatureStore.
# Setup FeatureStore for this repository.
>>> fs.setup()
True
# Example 1: Delete the Entity 'sales_data' in the repo 'vfs_v1' using Entity name.
# Create Entity using teradataml DataFrame Column.
>>> entity = Entity(name="sales_data", columns=df.accounts)
# Apply the entity to FeatureStore.
>>> fs.apply(entity)
True
# List all the available entities.
>>> fs.list_entities()
description creation_time modified_time entity_column
name data_domain
sales_data ALICE None 2025-07-28 04:58:01.123456 None accounts
# Let's first archive the entity.
>>> fs.archive_entity(entity=entity.name)
Entity 'sales_data' is archived.
True
# Delete Entity with name "sales_data".
>>> fs.delete_entity(entity=entity.name)
Entity 'sales_data' is deleted.
True
# List the entities after delete.
>>> fs.list_entities()
Empty DataFrame
Columns: [id, column_name, description, tags, data_type, feature_type, status, creation_time, modified_time, group_name]
Index: []
Example 2: Delete the Entity 'sales_data' in the repo 'vfs_v1' using Entity object.
# Create Entity using teradataml DataFrame Column.
>>> entity2 = Entity(name="sales_data_df", columns=df.accounts)
# Apply the entity to FeatureStore.
>>> fs.apply(entity2)
True
# List all the available entities.
>>> fs.list_entities()
description creation_time modified_time entity_column
name data_domain
sales_data_df ALICE None 2025-07-28 04:59:14.325456 None accounts
# Let's first archive the entity.
>>> fs.archive_entity(entity=entity2)
Entity 'sales_data_df' is archived.
True
# Delete Entity with Entity object.
>>> fs.delete_entity(entity=entity2)
Entity 'sales_data_df' is deleted.
True