<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to DeleteDevice</title><link>https://sourceforge.net/p/m2mlabs/wiki/DeleteDevice/</link><description>Recent changes to DeleteDevice</description><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/DeleteDevice/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 22 Sep 2012 20:33:31 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/DeleteDevice/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage DeleteDevice modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/DeleteDevice/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -15,7 +15,7 @@
 Errors:
 
 * 401 UNAUTHORIZED if key is invalid or not admin key
-* 404 Not Found if the sensor model does not exist
+* 404 Not Found if the device does not exist
 
 Example
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 20:33:31 -0000</pubDate><guid>https://sourceforge.net103f4e5ee2ae259b2b2e61d712a45178315a24d1</guid></item><item><title>WikiPage DeleteDevice modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/DeleteDevice/</link><description>### Delete Device ###

deletes a device in the namespace of the owner identified by the apikey

##### ! all data of the device can not be accessed anymore #####

Path: cs-ws/resources/admin/device        Method: DELETE
Alternative: cs-ws/resources/admin/device/delete       Method: POST

Parameters

* device_name
* apikey

Errors:

* 401 UNAUTHORIZED if key is invalid or not admin key
* 404 Not Found if the sensor model does not exist

Example

~~~~~~
DELETE http://localhost/cs-ws/resources/admin/device
?device_name=MyTempDev&amp;apikey=1234 HTTP/1.1

HTTP/1.1 200 OK
~~~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 20:08:34 -0000</pubDate><guid>https://sourceforge.neta20a797905b36f7786eb8f111c0412213a0e02b2</guid></item></channel></rss>