DEL - https://api.tago.io/data
Headers:
Authorization: Token of your device.

Optional Querstrings

KEY
TYPE
DESCRIPTION
query
stringpre-defined by Tago

qty
string
Maximum number of data to be returned
start_date
string
Start date
end_date
stringend date
variable
stringFilter by Variable


To delete data, Tago uses the same querystring used to get data, for more details about each query, see here.

Below, we will show some examples of DELETING data using querystring.

Examples:

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

Devices can only delete their own data.
This means that if have multiple devices in a bucket, and you create data from a device, other devices cannot delete that data.