I have already a device with a variable configured in a bucket.
How do I manually erase the first and some other random points from this data array?
I have already a device with a variable configured in a bucket.
How do I manually erase the first and some other random points from this data array?
Hi,
You can delete specific data points in two ways:
1 - You can create a Dynamic Table in a dashboard, and enable the option to delete lines. This way you can find the data you want to delete and remove from the bucket.
2 - You can use the API route https://api.tago.io/data.
It allows you to delete the data by filtering what you want to delete. You can also use the GET method to get data from the device.
Example:
GET https://api.tago.io/data?authorization=Device-Token
Delete by data ID:
DELETE https://api.tago.io/data?authorization=Device-Token&id=DATA-ID
Delete by variable:
DELETE https://api.tago.io/data?authorization=Device-Token&variable=temperature
Delete last 3 in a variable:
DELETE https://api.tago.io/data?authorization=Device-Token&variable=temperature&qty=3