ThingSpeak

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Clear a Channel

To clear all feed data from a channel, send an HTTP DELETE to https://api.thingspeak.com/channels/CHANNEL_ID/feeds, replacing CHANNEL_ID with the ID of the channel.

Valid parameters:

  • api_key (string) - User’s API key. This is different from a channel API key, and can be found in your profile page. (required).

JSON

To clear all feed data from a channel, send an HTTP DELETE to https://api.thingspeak.com/channels/CHANNEL_ID/feeds.json, replacing CHANNEL_ID with the ID of the channel.

Example:

DELETE https://api.thingspeak.com/channels/4/feeds.json
       api_key=XXXXXXXXXXXXXXXX

The response is an empty JSON array, for example:

[]

XML

To clear all feed data from a channel, send an HTTP DELETE to https://api.thingspeak.com/channels/CHANNEL_ID/feeds.xml.

Example:

DELETE https://api.thingspeak.com/channels/4/feeds.xml
       api_key=XXXXXXXXXXXXXXXX

The response is an empty XML array, for example:

<?xml version="1.0" encoding="UTF-8"?>
<nil-classes type="array" />
Was this topic helpful?