Delete the Device by ID

delete

/iot/api/v2/devices/{device-id}

Delete device by given ID. Along with device, all device sub-resources will also be cleaned up

Request

Path Parameters
Back to Top

Response

204 Response

Successfully processed.

401 Response

Unauthorized. The request requires user authentication.

403 Response

Forbidden. The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated.

404 Response

Not Found. The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
Back to Top

Examples

curl -X DELETE 
   -u <username>:<password>
   http://iotserver/iot/api/v2/devices/{device-id}




Complete cURL Example

The following example shows compete cURL comand that can be used to perform described operation

curl -X DELETE 
   -u <username>:<password>
   http://iotserver/iot/api/v2/devices/6f6d35469fd-7be3



Note that in the request, http://iotserver will be replaced by the name and port of your assigned IoT Cloud Service instance. The format of the Cloud Service instance is https:// myinstance-myidentitydomain.iot.us.oraclecloud.com and the default port is 443.
Back to Top