How to delete all data of a channel are older than a date using a request.

2 views (last 30 days)
When my sensor started sending data to the server, for a few days it sent incorrect values due to incorrect placement.
Now I want to delete this initial data recorded before a certain date.
Is there any way to do this either through the website or using an Http request?
Which is the correct Http request syntax to delete the data before a date or between two dates?

Answers (1)

Christopher Stapels
Christopher Stapels on 27 Jan 2024
There is not an API command to selctively delete specific points. You can clear all channel data at once with the API and with the web UI. The workaround is to download all the data, delete the points you need and then re upload the cleaned data. Since you can set the range on field plots and custom visualizations, the bad data shouldnt change your viewing of the channel data.
If you choose the re - upload method, you will need to be very careful with timestamps.

Categories

Find more on Read Data from Channel in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!