Teradata Package for Python Function Reference on VantageCloud Lake - delete_feature - 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_feature = delete_feature(self, feature)
- DESCRIPTION:
Removes the archived Feature from repository.
PARAMETERS:
feature:
Required Argument.
Specifies either the name of Feature or Object of Feature
to remove from repository.
Types: str OR Feature
RETURNS:
bool.
RAISES:
TeradataMLException, TypeError, ValueError
EXAMPLES:
>>> from teradataml import DataFrame, Feature, 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 Feature 'sales_data_Feb' in the repo 'vfs_v1' using Feature object.
# Create Feature for Column 'Feb'.
>>> feature = Feature(name="sales_data_Feb", column=df.Feb)
# Add the feature created above in the feature store.
>>> fs.apply(feature)
True
# List the available Features.
>>> fs.list_features()
id column_name description tags data_type feature_type status creation_time modified_time group_name
name data_domain
sales_data_Feb ALICE 1 Feb None None FLOAT CONTINUOUS ACTIVE 2025-07-28 04:49:55.827391 None None
# Let's first archive the Feature.
>>> fs.archive_feature(feature=feature)
Feature 'sales_data_Feb' is archived.
True
# Delete Feature with name "sales_data_Feb".
>>> fs.delete_feature(feature=feature)
Feature 'sales_data_Feb' is deleted.
True
# List the available Features after delete.
>>> fs.list_features()
Empty DataFrame
Columns: [id, column_name, description, tags, data_type, feature_type, status, creation_time, modified_time, group_name]
Index: []
Example 2: Delete the Feature 'sales_data_Feb' in the repo 'vfs_v1' using feature name.
# Create Feature for Column 'Jan'.
>>> feature2 = Feature(name="sales_data_Jan", column=df.Jan)
# Add the feature created above in the feature store.
>>> fs.apply(feature2)
True
# List the available Features.
>>> fs.list_features()
id column_name description tags data_type feature_type status creation_time modified_time group_name
name data_domain
sales_data_Jan ALICE 2 Jan None None FLOAT CONTINUOUS ACTIVE 2025-07-28 04:50:55.827391 None None
# Let's first archive the Feature using feature name.
>>> fs.archive_feature(feature="sales_data_Jan")
Feature 'sales_data_Jan' is archived.
True
# Delete Feature with name "sales_data_Jan".
>>> fs.delete_feature(feature="sales_data_Jan")
Feature 'sales_data_Jan' is deleted.
True