Teradata Package for Python Function Reference | 20.00 - 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 - 20.00
- Deployment
- VantageCloud
- VantageCore
- Edition
- Enterprise
- IntelliFlex
- VMware
- Product
- Teradata Package for Python
- Release Number
- 20.00.00.03
- Published
- December 2024
- ft:locale
- en-US
- ft:lastEdition
- 2024-12-19
- dita:id
- TeradataPython_FxRef_Enterprise_2000
- lifecycle
- latest
- 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
>>> load_example_data('dataframe', ['sales'])
# Create teradataml DataFrame.
>>> df = DataFrame("sales")
# Create Entity using teradataml DataFrame Column.
>>> entity = Entity(name="sales_data", columns=df.accounts)
# Create FeatureStore for repo 'staging_repo'.
>>> fs = FeatureStore("staging_repo")
# Apply the entity to FeatureStore.
>>> fs.apply(entity)
True
# 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
>>>