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.

Delete a Channel

To delete a channel, send an HTTP DELETE to https://api.thingspeak.com/channels/CHANNEL_ID, replacing CHANNEL_ID with the ID of your channel.

Valid parameters:

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

JSON

To delete a channel, send an HTTP DELETE to https://api.thingspeak.com/channels/CHANNEL_ID.json, replacing CHANNEL_ID with the ID of your channel.

Example:

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

The response is a JSON object of the channel before it was deleted, for example:

{
  "id": 4,
  "name": "My New Channel",
  "description": null,
  "latitude": null,
  "longitude": null,
  "created_at": "2014-03-25T13:12:50-04:00",
  "elevation": null,
  "last_entry_id": null,
  "ranking": 15,
  "username": "iothans",
  "tags": []
}

XML

To delete a channel, send an HTTP DELETE to https://api.thingspeak.com/channels/CHANNEL_ID.xml, replacing CHANNEL_ID with the ID of your channel.

Example:

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

The response is an XML object of the channel before it was deleted, for example:

<?xml version="1.0" encoding="UTF-8"?>
<channel>
    <id type="integer">4</id>
    <name>My New Channel</name>
    <description nil="true" />
    <latitude type="decimal" nil="true" />
    <longitude type="decimal" nil="true" />
    <created-at type="dateTime">2014-03-25T20:17:44-04:00</created-at>
    <elevation nil="true" />
    <last-entry-id type="integer" nil="true" />
    <ranking type="integer">15</ranking>
    <username>iothans</username>
    <tags type="array" />
</channel>

Was this topic helpful?