/
All Tag Value Delete

All Tag Value Delete

이 API는 특정 시점 이전의 모든 센서 데이터를 삭제한다. 시간 값은 base_time 매개변수로 전달한다. 대량의 데이터가 저장되어 저장공간이 부족할때 과거 데이터를 삭제하려고 할 때 사용된다. 시간값을 지정하는 포멧은 Single Tag Value Delete와 동일하다. Base_time 매개변수를 지정하지 않았을 경우, 모든 센서 데이터가 삭제된다.

HTTP Request

DELETE https://${CloudVendor}.${CountryCode}.machlake.com/lakes/${lake_id}/values/raw Content-Type: application/json; charset=utf8 x-api-key: {API Key} { "tag_name" : "", "base_time" : "{end_time}" }

Parameters

no parameters

Request Example

DELETE https://aws1.us.machlake.com/lakes/xbacd1234/values/raw Content-Type: application/json; charset=utf8 x-api-key: {API Key} { "tag_name" : "", "base_time" : "2021-07-06 12:13:00" }

Response Example

Status 200 { "status": "success", "data": {} }

Sample Code