def Collection.delete( datapoints: DatapointIDs, *, show_progress: bool | Callable[[float], None] = False,) -> intDelete data points from the collection.
Data points are identified and deleted by their ids.
Parameters
Section titled “Parameters”datapoints DatapointIDs Datapoint IDs to delete from the collection.
Supported DatapointIDs types are:
- A
pandas.DataFramecontaining anidcolumn. - A
pandas.Seriescontaining datapoint IDs. - An
xarray.Datasetcontaining an “id” variable. - An
xarray.DataArraycontaining datapoint IDs. - A
numpy.ndarraycontaining datapoint IDs. - A
Collection[UUID]containing datapoint IDs as python built-inUUIDobjects, e.g.list[UUID]. - A
Collection[str]containing datapoint IDs as strings, e.g.list[str].
show_progress bool | Callable[[float], None] If True, display a progress bar while deleting many datapoints. You can also pass a callback to receive progress values between 0 and 1. Defaults to False.
Returns
Section titled “Returns”The number of data points that were deleted.
Errors
Section titled “Errors”NotFoundError No such collection: Non-existent-Collection One of the data points is not found in the collection. If any of the data points are not found, nothing will be deleted.
ValueError Invalid UUID One of the specified ids is not a valid UUID