Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Deleting multiple data points
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

Deleting multiple data points

by potokslow on Thu Oct 08, 2020 7:06 am

Hello,

I'd like to delete multiple data points from a feed (few hundred items).

According to https://learn.adafruit.com/adafruit-io- ... -feed-data - tick boxes should be available allowing to select and delete multiple points at a time, however it's not the case for my account.
Is there some special condition to enable this functionality?

Thank you

potokslow
 
Posts: 3
Joined: Thu Dec 14, 2017 11:50 am

Re: Deleting multiple data points

by brubell on Fri Oct 09, 2020 9:37 am

The screenshots on that page are from a previous version of Adafruit IO.

I'd like to delete multiple data points from a feed (few hundred items).


There's no way to remove all data from a feed at the same time. Feed deletion is an API action (https://io.adafruit.com/api/docs/#delete-data-point) and is therefore limited to your account's data rate (30 or 60 data points per minute for IO Free and IO Plus, respectively).

You may want to create a script which uses the delete data point api endpoint (https://io.adafruit.com/api/docs/#delete-data-point) to remove data.

brubell
 
Posts: 1061
Joined: Fri Jul 17, 2015 10:33 pm

Re: Deleting multiple data points

by vamo on Wed Oct 14, 2020 3:13 am

I have the same problem.
I have realized an acquisition system and the data are transmitted on adafruit io feeds.
In the dashboard I would like to display only the last 24 hours of data.
This is possible in the "line chart" modules, but instead in the "map" module the setting of the represented period ("Hours of History - 0 for realtime") is completely ignored, and all data in the feed are represented.
To clean the representation in the "map" module it is not even possible to delete the entire feed, otherwise the "map" module using that feed is automatically deleted from the dashboard after the deletion of the feed.
Currently, in order to delete the past data, I have to edit the dashboard to temporarily associate the "map" module to a different feed, then delete the feed to clean, then recreate it, then re-associate the "map" module to the original recreated feed (now empty).
Very very cumbersome...
Is it possible to delete directly and in a single operation a range of data from a feed? Via web or API?
many many thanks...

vamo
 
Posts: 4
Joined: Thu Jun 25, 2020 5:38 am

Re: Deleting multiple data points

by brubell on Fri Oct 16, 2020 4:09 pm

To clean the representation in the "map" module it is not even possible to delete the entire feed, otherwise the "map" module using that feed is automatically deleted from the dashboard after the deletion of the feed.


I've escalated this to our web team and they'll be taking a look at it on the other thread you posted.


Is it possible to delete directly and in a single operation a range of data from a feed? Via web or API?


No, not currently.

brubell
 
Posts: 1061
Joined: Fri Jul 17, 2015 10:33 pm

Re: Deleting multiple data points

by vamo on Mon Oct 19, 2020 7:38 am

Hi Brent.
Thanks for the reply.
Maybe the best solution could be to finally solve the problem that the setting of the represented period ("Hours of History - 0 for realtime") is ignored in the "map" module, and all data in the feed are represented. This could solve in a better way.
Do you know if the web team is working on it..?
Many thanks again,
Valerio

vamo
 
Posts: 4
Joined: Thu Jun 25, 2020 5:38 am

Please be positive and constructive with your questions and comments.