can somebody provide a REAL copy & paste example how to clear a channel?
Show older comments
Hello everybody
I tried to use the DELETE-command but had no success at all.
I have read this example
To clear all feed data from a Channel, send an HTTP DELETE to http://203.159.0.30:3000/channels/CHANNEL_ID/feeds
But I have no idea what I do have to adapt to my personal data and what not
If I put the following line into the URL_field of my browser I get just errormessages
same with this URL
http://delete/ 203.159.0.30:3000/channels/***137/feeds
I'm even unsure if I can just paste an URL_ into the browser
So can somebody provide an example with a public-testchannel that show the exact syntax and does explain all the
details which part of the URL_ means what and where I can find the API_KEY the channel-ID etc. etc. etc.
Under profile some keys are provided
like this
DELETE https://api.thingspeak.com/channels/CHANNEL_ID/feeds.json
api_key=****N07O0C8W83QH
this looks like a copy & paste example but it isn't
MATLAB is an educational organisation (I think) so please provide EASY to understand examples that explain ALL the details.
best regards
Stefan
1 Comment
Vinod
on 1 Nov 2019
The server at IP address 203.159.0.30 is not maintained by MathWorks. How did you end up on that server?
If you are using the password to your MathWorks account on that server, I recommend you promptly change your MathWorks Account password.
Answers (2)
Vinod
on 1 Nov 2019
0 votes
An example of the HTTP request to clear a channel on https://thingspeak.com using a tool like Postman can be found in the documentation.
5 Comments
S. Ludwig
on 1 Nov 2019
Vinod
on 2 Nov 2019
I may be able to, if you can tell me how you landed on the website whose IP address is in the post.
S. Ludwig
on 4 Nov 2019
Vinod
on 4 Nov 2019
As I mentioned earlier -- that site is not the MathWorks hosted and supported version of ThingSpeak and it does not have the same features or availability as ThingSpeak. If you are using the same password there as on ThingSpeak, I'd strongly recommend changing it.
There is no way that I know to make the requests to clear channel from a web browser's address bar. Read this stackoverflow post for details. If you have MATLAB, I can give you example MATLAB code that does it. Without that, I can give you an example that requires CURL, which is available with Windows Powershell or by default on most Linux installations.
Christopher Stapels
on 4 Nov 2019
The site you are linking to is definitely not authorized by MathWorks and is not using the ThingSpeak name and logo with permission.
The answer to your first question is NO.
The example provided by Vinod shows how to delete the channel step by step using the free Postman software. There is a link to the Postman software in the first line of the example. The four steps outline clerly what information to use and where to substitute your own personal information.
For example, In the address bar, enter https://api.thingspeak.com/channels/<channelID>/feeds.json, replacing <channelID> with the ID of the channel you want to clear.
and
Enter the parameter api_key and your user API Key, which is found in Account > My Profile.
Additionally, you can delete a channel using the web interface. Select channels on the top and select the channel you want to delete. Select the Channel settings tab and scroll to the bottom. There are options for clearing the data in a channel and for deleting the entire channel.
If you created your channel on the unauthorized site you mentioned previously, these steps will not work.
Communities
More Answers in the ThingSpeak Community
Categories
Find more on Vehicle Network Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!