Clear all data from channel with HTTP DELETE
(Required) Channel ID for the channel of interest, specified as an integer.
(Required) Format for the HTTP response, specified as
(Required) Specify User API Key, which you can find in your profile. This key is different from the channel API keys.
For the full list, see Error Codes.
Use POSTMAN to Clear Channel
You can use POSTMAN to try out your HTTP requests using the RESTful API for ThingSpeak. This example shows how to clear a channel using POSTMAN.
Clear the data in a channel. Here is the format of the HTTP request.
DELETE https://api.thingspeak.com/channels/4/feeds.json api_key=XXXXXXXXXXXXXXXX
In POSMAN, select DELETE from the drop-down list of HTTP verbs.
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.
Under the Body, choose x-www-form-urlencoded.
Enter the parameter
api_keyand your user API Key, which is found in Account > My Profile.
The response is an empty JSON object, and a 200 OK from the server.