Delete a Device Model
delete
/iot/api/v2/deviceModels/{urn}
This resource allows to delete device model. Removing a device model is a potentially hazardous operation. Integrations or analytic explorations may depend on message formats defined by this device model. Removing a device model is also dangerous because any devices that implement this device model specification may stop working as expected. By passing this query parameter force==true/false, the caller acknowledges their willingness to proceed.
Request
Path Parameters
-
urn: string
URN of the device model to delete
Query Parameters
-
force(optional): boolean
Removing a device model is a potentially hazardous operation. Integrations or analytic explorations may depend on message formats defined by this device model. Removing a device model is also dangerous because any devices that implement this device model specification may stop working as expected.By passing this query parameter force==true/false, the caller acknowledges their willingness to proceed.
Response
204 Response
Successfully processed.
400 Response
Bad Request. The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
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.
Examples
Complete cURL Example
The following example shows a complete cURL command that you can use to perform the described operation:
curl -X DELETE
-u <username>:<password>
https://iotserver/iot/api/v2/deviceModels/urn:example:unique:identifier:of:the:resource:2b55
Note that in the request,
https://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.