Black Lives Matter - Action and Equality.
0

Clear all data points in a feed?
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.

Clear all data points in a feed?

by breckymorris on Mon May 11, 2020 5:25 pm

I've seen a number of posts inquiring about removing all data from a feed but keeping the feed, but I've never seen it answered. Is there a way to do it via GUI or from a command line (via curl, for example)?

It comes up frequently for me - like I make a change to the program and then I have all this stale data and the plot scale is goofy or I move the sensor from testing into 'production' and the same thing happens. Removing the entire feed and recreating it isn't convenient.

Thanks,

Brecky

breckymorris
 
Posts: 4
Joined: Wed Feb 06, 2019 11:25 pm

Re: Clear all data points in a feed?

by brubell on Tue May 12, 2020 10:32 am

Hi Brecky,

There's no way to remove all data from a feed at once. 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.

I'll put a feature request in for the devs., it's something I'd like to see too.

- Brent R.

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

Please be positive and constructive with your questions and comments.