cdf data purge command to delete data from Cognite Data Fusion (CDF). The command has subcommands for deleting different types of data, including data sets, spaces, and instances.
Prerequisites
Before purging data, ensure you have:- Installed and configured the Cognite Toolkit.
- Authenticated with CDF using appropriate credentials.
- Admin or delete permissions for the data you want to purge.
- Backed up any data you might need to restore later.
Purge data sets
To delete all data in a data set, use thedataset subcommand. You can also specify to include all configuration resources in the data set.
Purge spaces
To delete all data in a space, use thespace subcommand. This is typically used to delete a schema space (a space containing data models, views, and containers).
Do not use this command to delete large amounts of data unless you intend to delete everything in the space.
Purge instances
To delete instances, use theinstances subcommand. You can select which instances to delete in multiple ways: