from uuid import UUID

datapoints_ids=[
  UUID("29b29ade-db02-427a-be9c-a8ef8184f544"),
  UUID("fa4a8e4e-6afe-41a3-b228-b867330669bd"),
]
n_deleted = collection.delete_ids(datapoints_ids)
def Collection.delete_ids(datapoints_ids: list[UUID]) -> int

Delete datapoint from the collection by their ids.

You need to have write permission on the collection to be able to delete datapoints.

Parameters

datapoints_ids
list[UUID]

The ids of the datapoints to delete.

Returns

The number of datapoints that were deleted.

from uuid import UUID

datapoints_ids=[
  UUID("29b29ade-db02-427a-be9c-a8ef8184f544"),
  UUID("fa4a8e4e-6afe-41a3-b228-b867330669bd"),
]
n_deleted = collection.delete_ids(datapoints_ids)