Delete feature types

async AsyncCogniteClient.geospatial.delete_feature_types(
external_id: str | SequenceNotStr[str],
recursive: bool = False,
) → None

Delete one or more feature type.

Deprecated since version 8.23.0: The Geospatial API is deprecated and is scheduled for removal on 2027-12-31. There is no replacement in the data modeling service; plan to stop using it. See https://docs.cognite.com/cdf/deprecated for details and migration guidance.

Parameters:
  • external_id (str | SequenceNotStr[str]) – External ID or list of external ids

  • recursive (bool) – if true the features will also be dropped

Examples

Delete feature type definitions external id:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> client.geospatial.delete_feature_types(external_id=["wells", "cities"])