Delete Multiple Datapoints

Deletes a range of datapoints in this datastream.

WARNING: This is final and cannot be undone.

Specifying the Range

You specify the range as a combination of query parameters:

  • Start timestamp: Deletes all datapoints after the value.
  • End timestamp: Deletes all datapoints prior to the supplied value.
  • Start and end timestamp: Deletes all datapoints that lie between those dates.
  • Start timestamp and duration: Deletes all datapoints between the start timestamp and the (start timestamp + duration).
  • End timestamp and duration: Deletes all datapoints between the (end timestamp - duration) and the end timestamp.

The formatting of the duration parameter is the same as is used in Historical Queries.

API Call Examples

Request

Parameters
Method DELETE
Base URL https://api.xively.com
API Endpoint /v2/feeds/FEED_ID/datastreams/DATASTREAM_ID/datapoints?start=2012-05-21T07:48.014326Z
Headers
X-ApiKey API_KEY_HERE
Body
JSON
XML
CSV
  • DELETE/v2/feeds/FEED_ID/datastreams/DATASTREAM_ID/datapoints?start=2012-05-21T07:48.014326Z

    This request does not require body data
    
  • DELETE/v2/feeds/FEED_ID/datastreams/DATASTREAM_ID/datapoints?start=2012-05-21T07:48.014326Z

    This request does not require body data
    
  • DELETE/v2/feeds/FEED_ID/datastreams/DATASTREAM_ID/datapoints?start=2012-05-21T07:48.014326Z

    This request does not require body data
    

 

 

Response

Parameters
Status Code 200 OK
Headers
No Headers
Body
JSON
XML
CSV
  • This response does not contain body data
    
  • This response does not contain body data
    
  • This response does not contain body data