Delete
- async AsyncCogniteClient.data_modeling.streams.delete(
- external_id: str | SequenceNotStr[str],
-
Note
Deletion is a soft delete that retains capacity for an extended period; prefer deleting only when necessary.
- Parameters:
external_id (str | SequenceNotStr[str]) – External ID or list of external IDs of streams to delete.
Examples
Delete a single stream:
>>> from cognite.client import CogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> client.data_modeling.streams.delete("my-stream")
Delete multiple streams:
>>> client.data_modeling.streams.delete(["stream-a", "stream-b"])