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.
- 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