All Collections
FAQs and Troubleshooting
How can I delete a range of data points?
How can I delete a range of data points?

Learn how to delete set of value in your account making a delete request

S
Written by Sergio M
Updated over a week ago

To delete a set of values in your account make a DELETE request to:

https://industrial.api.ubidots.com/api/v1.6/variables/{VAR_ID}/values/{START}/{END}/

Values between the {START} timestamp and the {END} timestamp will be deleted.

Http Request

DELETE /api/v1.6/variables/{VAR_ID}/values/{START}/{END}/?token={TOKEN} HTTP/1.1
Host: industrial.api.ubidots.com

Example request

# Request: Delete all values between timestamps 1447136223927 and 1449419580541:

curl -X DELETE "https://industrial.api.ubidots.com/api/v1.6/variables/561ecb647625425fd0dfec9c/values/1447136223927/1449419580541/?token=MtRbM7ipKUsjRh6RwJE0ofIQo0KqoG"

# Response
{
    "count": 7200
}

 
PROTIP
: A useful tool to convert between Human readable dates and POSIX timestamps is: www.epochconverter.com

NOTE: Remember to replace {VAR_ID} with the ID of the Variable you wish to retrieve and {TOKEN} with a valid token from your account.

Did this answer your question?