can somebody provide a REAL copy & paste example how to clear a channel?

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

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.

Sign in to comment.

Answers (2)

I received an Email with this text which seems to a first answer to my question. But If I lookup my question the answer is not shown New answer
Vinod answered your question can somebody provide a REAL copy & paste example how to clear a channel?The MathWorks' supported and maintained ThingSpeak service is at https://thingspeak.com. The server at IP address 203.159.0.30 is not supported or maintained by MathWorks and I recommend you not use that service, and especially not use the password on that website and ThingSpeak .
Did you have a question about ThingSpeak, specifically about clearing the data in a channel?
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

Hello Vinod,
thank you for answering. I have read this example you were linking to. I don't understand this example. That's the reason why already the headline is worde can somebody provide a copy and paste example that explains ALL the details?
I may be able to, if you can tell me how you landed on the website whose IP address is in the post.
This is the U R L where I found this Description with the IP-Adress
just scroll down until "Clear a Channel"
The design looks like a ThingSpeak-Website
Is this a phishing-site?
So my question has evolved a little bit:
Can I clear a channel with a standard-browser like firefox or chrome without any plugins or addons just by typing in a special U R L ? First answer with a clear "YES" or "NO"
In case of "YES" please post a REAL-working example with a testchannel
or replace parts of the U R L with something like "MyCHannel-ID" "My-API-KEY"
to indicate very clearly where my personal data must be inserted.
best regards
Stefan
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.
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.
For additional features and suupport, you can consider purchasing a license at How to Buy.

Sign in to comment.

Communities

More Answers in the  ThingSpeak Community

Products

Release

R2009b

Asked:

on 1 Nov 2019

Community Treasure Hunt

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

Start Hunting!