delete() | FeatureStore Core Method | Teradata Package for Python - delete() - Teradata Package for Python

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Package for Python
Release Number
20.00
Published
March 2025
ft:locale
en-US
ft:lastEdition
2025-12-05
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
Product Category
Teradata Vantage

Use the delete() method to delete the entire FeatureStore repository. This function also tries to remove the underlying Database once all the Feature Store objects are removed.

The function removes all the associated database objects along with data. Be cautious while using this function.

You must have permission on the database used by this Feature Store to drop:
  • triggers
  • the tables
  • the database.

If you lack any of these permissions, Teradata recommends to not use this function.

Optional Parameter

force
Specifies whether to forcefully delete feature store or not.

When set to True, delete() method proceeds to drop objects even if previous step is errored. Otherwise, delete() method raises the exception at the first error and do not proceed to remove other objects.

Default value: False

Example setup

Set up FeatureStore for repo 'vfs_v1'.

>>> from teradataml import FeatureStore
>>> fs = FeatureStore("vfs_v1")
Repo vfs_v1 does not exist. Run FeatureStore.setup() to create the repo and setup FeatureStore.

Example: Delete the FeatureStore and all its components

Set up FeatureStore.

>>> fs.setup()
True

Delete the FeatureStore and all its components.

>>> fs.delete()
The function removes Feature Store and drops the corresponding repo also. Are you sure you want to proceed? (Y/N): Y
True

Forcefully delete the FeatureStore and all its components.

>>> fs.delete(force=True)
The function removes Feature Store and drops the corresponding repo also. Are you sure you want to proceed? (Y/N): Y
True