Delete rows from a sequence

async AsyncCogniteClient.sequences.data.delete(
rows: Sequence[int],
id: int | None = None,
external_id: str | None = None,
) → None

Delete rows from a sequence.

Deprecated since version 8.23.0: The Sequences API is deprecated and is scheduled for removal on 2027-12-31. Use files in data modeling (for whole-table downloads) or records (for row-level queries). See https://docs.cognite.com/cdf/deprecated for details and migration guidance.

Parameters:
  • rows (Sequence[int]) – List of row numbers.

  • id (int | None) – Id of sequence to delete rows from.

  • external_id (str | None) – External id of sequence to delete rows from.

Examples

Delete rows from a sequence:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> client.sequences.data.delete(id=1, rows=[1, 2, 42])