Deleting Data
Learn how to delete data points from Tilebox datasets.
Overview
This section provides an overview of the API for deleting data from a collection.
Method | Description |
---|---|
collection.delete | Delete data points from a collection. |
You need to have write permission on the collection to be able to delete datapoints.
Check out the examples below for common scenarios of deleting data from a collection.
Deleting data by datapoint IDs
To delete data from a collection, use the delete method. This method accepts a list of datapoint IDs to delete.
delete
not only takes a list of datapoint IDs as string, but supports a wide range of other useful input types as well.
See the delete API documentation for more details.
Possible errors
NotFoundError
: raised if 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
: raised if one of the specified ids is not a valid UUID
Deleting a time interval
One common way to delete data is to first load it from a collection and then forward it to the delete
method. For
this use case it often is a good idea to query the datapoints with skip_data=True
to avoid loading the data fields,
since we only need the datapoint IDs. See fetching only metadata for more details.
Was this page helpful?