Delete a range of rows from a sequence

async AsyncCogniteClient.sequences.data.delete_range(
start: int,
end: int | None,
id: int | None = None,
external_id: str | None = None,
) None

Delete a range of rows from a sequence.

Note this operation is potentially slow, as retrieves each row before deleting.

Parameters:
  • start (int) – Row number to start from (inclusive).

  • end (int | None) – Upper limit on the row number (exclusive). Set to None or -1 to delete all rows until end of sequence.

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

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

Examples

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> client.sequences.data.delete_range(id=1, start=0, end=None)