How to clear thingspeak channel from Matlab?

46 views (last 30 days)
Mirko on 4 Mar 2020
Good evening,
are there any MATLAB commands to clear a ThingSpeak channel?
I found this link but I can't use the commands:

Answers (3)

Vinod on 5 Mar 2020
Try this:
UserAPIKey = 'YOUR_USER_API_KEY'; % This is available from
url = sprintf('',num2str(ChannelID),UserAPIKey)
response = webwrite(url, weboptions('RequestMethod','delete'))
  1 Comment
Mirko Mirabella
Mirko Mirabella on 8 Mar 2020
Thank you Vinod for the support, the Script that you send me work perfectly.
Now I can clear my ThingSpeak channels directly from MATLAB.

Sign in to comment.

Larry Fostano
Larry Fostano on 3 Nov 2020
I must be missing something here , how do I do that
Larry Fostano
Larry Fostano on 21 Feb 2021
Ok I still don't see any script, how do I use a script that I don't have? Thank you

Sign in to comment.

Larry Fostano
Larry Fostano on 21 Feb 2021
If I copy the url it says this page isn't working, contact the site owner, thanks
  1 Comment
Christopher Stapels
Christopher Stapels on 22 Feb 2021
Try this one and then modify it to have the channel values you need.

Sign in to comment.


More Answers in the  ThingSpeak Community

Community Treasure Hunt

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

Start Hunting!