Delete relationships

async AsyncCogniteClient.relationships.delete(
external_id: str | SequenceNotStr[str],
ignore_unknown_ids: bool = False,
) None

Delete one or more relationships.

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

  • ignore_unknown_ids (bool) – Ignore external IDs that are not found rather than throw an exception.

Examples

Delete relationships by external id:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> client.relationships.delete(external_id=["a", "b"])