DEL - https://api.tago.io/data
Headers:
Authorization: Your device token.
Optional Query Strings
KEY | TYPE | DESCRIPTION |
query | string | pre-defined by Tago |
qty | string | Maximum number of data to be returned |
start_date | string | Start date |
end_date | string | end date |
variable | string | Filter by Variable |
To delete data, TagoIO uses the same query string used to get data, for more details about each query, see here.
Below, we will show some examples of DELETING data using query string.
Deleting the last 99 items from the variable temperature.https://api.tago.io/data?variable=temperature&qty=99
Deleting the last item from the variable temperature. https://api.tago.io/data?variable=temperature&query=last_item
Deleting the last value from the variable temperature (requires the 'value' attribute on the variable object).https://api.tago.io/data?variable=temperature&query=last_value
Deleting the last location from the variable temperature (requires 'location' attribute on the variable object).https://api.tago.io/data?variable=temperature&query=last_location
Deleting by period.https://api.tago.io/data?variable=temperature&start_date=2014-12-25&end_date=2014-12-26
Deleting the last value from an array of variables.https://api.tago.io/data?variable[]=temperature&variable[]=pressure&query=last_value